JuliaPy / PyPlot.jl

Plotting for Julia based on matplotlib.pyplot
https://github.com/JuliaPy/PyPlot.jl
MIT License
475 stars 87 forks source link

Define showable for PNG MIME type #483

Open dahtah opened 4 years ago

dahtah commented 4 years ago

Currently only showable("image/svg+xml",Figure) is defined. Adding showable("image/png",Figure) = true should enable third-party display systems like ElectronDisplay.jl to work with PyPlot.jl out of the box.

jebej commented 4 years ago

showable is defined for pngs, can you try running methods(Base.showable)?

I get this in the 7th entry:

[7] showable(::MIME{Symbol("image/png")}, f::Figure) in PyPlot at C:\Users\Jeremy\.julia\packages\PyPlot\XHEG0\src\PyPlot.jl:86