not displaying in Juno

This commit is contained in:
Simon Christ 2019-11-12 16:55:13 +01:00
parent 54fc1ff69c
commit 37300a9345

View File

@ -1,11 +1,13 @@
using PGFPlotsX: PGFPlotsX
# --------------------------------------------------------------------------------------
# display calls this and then _display
function _update_plot_object(plt::Plot{PGFPlotsXBackend})
plt.o = PGFPlotsX.Axis()
push!( plt.o, PGFPlotsX.Plot(PGFPlotsX.Coordinates(1:5,1:5)) )
end
function _show(io::IO, mime::MIME"image/svg+xml", plt::Plot{PGFPlotsXBackend})
plt.o
show(io, mime, plt.o)
end
function _show(io::IO, mime::MIME"application/pdf", plt::Plot{PGFPlotsXBackend})
@ -13,7 +15,7 @@ function _show(io::IO, mime::MIME"application/pdf", plt::Plot{PGFPlotsXBackend})
end
function _show(io::IO, mime::MIME"image/png", plt::Plot{PGFPlotsXBackend})
display("image/png", plt.o)
show(io, mime, plt.o)
end
function _show(io::IO, mime::MIME"application/x-tex", plt::Plot{PGFPlotsXBackend})