Closed ghost closed 5 years ago
Maybe try gcf()
at the end to get a Figure
object (#55) as the result of the executing the code, since Juno hopefully calls display
on that and can use the image/png show
method?
@massimilianocomin, make sure you've disabled plot pane in julia client settings.
@stevengj Using gcf()
at the end of the code worked perfectly for displaying plots in Juno's plot pane, thanks !
Still, I don't know how to display plots in a separate window.
This will definitely show plots in their own windows
@e-pc Thanks, it works perfectly !
I'm working with Juno and I can't manage to display figures. I know it's not possible to display figures in the plot pane of Juno, but I also know that I should be able to display plots on separate windows.
Julia is linked to my python distribution :
ENV["PYTHON"] = "/path/to/miniconda3/python"
. After setting this permanently in the startup.jl file, I ranbuild PyCall; build PyPlot
. Before that I did not have any Qt backend (pygui(:qt5)
for instance gave an error), but now it seems ok. I modified my matplotlibrc as to put the Qt5Agg backend as default.Now if I run this code (I tried changing qt to qt5, ion() or not, show() or not, etc..)
I don't get any figure and I have the following warning from matplotlib
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. % get_backend())
How can I get figures to show then ?
PS: I am on mac