glvisualize
This commit is contained in:
parent
90d054c2ec
commit
24fa5c8cbe
@ -82,6 +82,9 @@ function add_backend(::GLVisualizeBackend)
|
|||||||
if !is_installed("Contour")
|
if !is_installed("Contour")
|
||||||
Pkg.add("Contour")
|
Pkg.add("Contour")
|
||||||
end
|
end
|
||||||
|
if !is_installed("GLPlot")
|
||||||
|
Pkg.add("GLPlot")
|
||||||
|
end
|
||||||
|
|
||||||
# TODO: remove this section when the tagged versions catch up
|
# TODO: remove this section when the tagged versions catch up
|
||||||
for pkg in [
|
for pkg in [
|
||||||
@ -894,6 +897,7 @@ function _display(plt::Plot{GLVisualizeBackend})
|
|||||||
empty_screen!(screen)
|
empty_screen!(screen)
|
||||||
sw, sh = plt[:size]
|
sw, sh = plt[:size]
|
||||||
sw, sh = sw*px, sh*px
|
sw, sh = sw*px, sh*px
|
||||||
|
# TODO: use plt.subplots... plt.spmap can't be trusted
|
||||||
for (name, sp) in plt.spmap
|
for (name, sp) in plt.spmap
|
||||||
_3d = Plots.is3d(sp)
|
_3d = Plots.is3d(sp)
|
||||||
# camera = :perspective
|
# camera = :perspective
|
||||||
@ -1049,6 +1053,8 @@ function _display(plt::Plot{GLVisualizeBackend})
|
|||||||
GLAbstraction.center!(sp_screen)
|
GLAbstraction.center!(sp_screen)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
yield()
|
||||||
|
Reactive.post_empty()
|
||||||
end
|
end
|
||||||
|
|
||||||
function _show(io::IO, ::MIME"image/png", plt::Plot{GLVisualizeBackend})
|
function _show(io::IO, ::MIME"image/png", plt::Plot{GLVisualizeBackend})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user