forio / julia-studio

An IDE for the Julia Language
forio.com/products/julia-studio
GNU General Public License v3.0
223 stars 48 forks source link

PyPlot with Julia Studio #252

Open abramdemski opened 9 years ago

abramdemski commented 9 years ago

I have been trying to figure out the best way to do graphics (winston/gadfly/pypblot...) and I have found that PyPlot works fine in the Julia command line, but does not work in Julia Studio. Initially it was throwing an error when trying to plot: UndefVarError(:pltm). Since everything was OK on my stand-alone Julia, I changed the 'path to Julia binaries' in the Julia Studio options, to match the stand-alone Julia's location.

This changed the behavior. Now, the plot function does not cause an error. It does not display anything, however. It prints this to output:

1-element Array{Any,1}: PyObject <matplotlib.lines.Line2D object at 0x000000002A3237F0>

Running pygui(true) does not change this behavior.

Does PyPlot normally work? Am I experiencing a strange bug? Or, is it just not possible for PyPlot to work correctly with Julia Studio?

This could be related to another issue: https://github.com/forio/julia-studio/issues/224 but, seems like a distinct problem.