Mocha.jl icon indicating copy to clipboard operation
Mocha.jl copied to clipboard

plot_statistics.jl doens't work from a windows environment

Open davidparks21 opened this issue 8 years ago • 1 comments

I'm running plot_statistics.jl from a windows environment, I can list the statistics, but plots don't work. I assume this is generic to windows because the below command also fails in the same way (no error, but no plot window):

julia -e "using PyPlot; figure(); print(); readline();"

But that works from the REPL just fine.

plot_statistics.jl was written to be a command line tool, but it seems like I'll need to move that functionality into function calls that can be run from the REPL or a notebook to get plots working for myself. I'd be happy to contribute this back if you want it, but thought I'd ask what structure you thought would work best if you'd like the contribution (i.e. re-working plot_statistics.jl, making it work as both command line and function calls, or just creating something new).

davidparks21 avatar May 19 '16 01:05 davidparks21

I think it will not show a window in command line mode, so you will need to save the figure to file to view it later on. Showing a popup window is supposed to be used in REPL mode as you pointed out.

pluskid avatar May 24 '16 15:05 pluskid