Does julia -L work with plots?

68 views
Skip to first unread message

Stefan Rigger

unread,
Oct 14, 2016, 1:17:05 PM10/14/16
to julia-users


Hello everyone,

I'm using julia to numerically solve partial differential equations and use PyPlot to plot the solutions. I'd like to be able to calculate a solution and plot entering something like
julia -L file.jl

in Terminal but unfortunately, this doesn't seem to work (there is no window opening where one can view the solution). I've attached a small .jl file if you want to test it yourself. Is there any way one can get this to work? Thank you for your time,

Best Regards,
Stefan Rigger
test.jl

Isaiah Norton

unread,
Oct 14, 2016, 8:56:46 PM10/14/16
to julia...@googlegroups.com
Call `show()` at the end of the script. See explanation here:

https://github.com/JuliaPy/PyPlot.jl#non-interactive-plotting

Stefan Rigger

unread,
Oct 15, 2016, 10:59:34 AM10/15/16
to julia...@googlegroups.com
Works great, thanks!
Reply all
Reply to author
Forward
0 new messages