not displaying in Juno
This commit is contained in:
parent
91d4e9dbe2
commit
37ff1a73ed
@ -1,11 +1,13 @@
|
|||||||
|
using PGFPlotsX: PGFPlotsX
|
||||||
# --------------------------------------------------------------------------------------
|
# --------------------------------------------------------------------------------------
|
||||||
# display calls this and then _display
|
# display calls this and then _display
|
||||||
function _update_plot_object(plt::Plot{PGFPlotsXBackend})
|
function _update_plot_object(plt::Plot{PGFPlotsXBackend})
|
||||||
plt.o = PGFPlotsX.Axis()
|
plt.o = PGFPlotsX.Axis()
|
||||||
|
push!( plt.o, PGFPlotsX.Plot(PGFPlotsX.Coordinates(1:5,1:5)) )
|
||||||
end
|
end
|
||||||
|
|
||||||
function _show(io::IO, mime::MIME"image/svg+xml", plt::Plot{PGFPlotsXBackend})
|
function _show(io::IO, mime::MIME"image/svg+xml", plt::Plot{PGFPlotsXBackend})
|
||||||
plt.o
|
show(io, mime, plt.o)
|
||||||
end
|
end
|
||||||
|
|
||||||
function _show(io::IO, mime::MIME"application/pdf", plt::Plot{PGFPlotsXBackend})
|
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
|
end
|
||||||
|
|
||||||
function _show(io::IO, mime::MIME"image/png", plt::Plot{PGFPlotsXBackend})
|
function _show(io::IO, mime::MIME"image/png", plt::Plot{PGFPlotsXBackend})
|
||||||
display("image/png", plt.o)
|
show(io, mime, plt.o)
|
||||||
end
|
end
|
||||||
|
|
||||||
function _show(io::IO, mime::MIME"application/x-tex", plt::Plot{PGFPlotsXBackend})
|
function _show(io::IO, mime::MIME"application/x-tex", plt::Plot{PGFPlotsXBackend})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user