pluskid / Mocha.jl

Deep Learning framework for Julia
Other
1.29k stars 254 forks source link

plot_statistics.jl doens't work from a windows environment #201

Open davidparks21 opened 8 years ago

davidparks21 commented 8 years ago

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).

pluskid commented 8 years ago

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.