[Nix-dev] Is anyone using Julia with PyPlot?
Michael Raskin
7c6f434c at mail.ru
Mon Dec 1 15:25:55 CET 2014
>I'm having an issue with the Julia Nix-expression[1]. I am trying to use it together with the Julia package PyPlot[2] to plot figures with matplotlib. If I try it in the command-line interface, then no plots show up. I only get a textual representation of the figure objects. However, when I use `savefig("tmp.png")` then the plot is correctly saved to the output file. In the IJulia[3] notebook no inline plots are displayed after calls to `plot`, or `title`, only the textual object representations. However, if I call `gcf()` to retrieve the current figure object, then the plot is correctly displayed inline in the notebook. Within python everything works fine: Plots in the commandline `ipython --pylab=qt`, as well as in the notebook with `%matplotlib inline` are displayed as expected. I would like to get Julia to display plots in gui windows from the command-line, and inline in IJulia notebooks.
>
>Please note, I am not sure if this is an issue with the Julia Nix-expression, or with the Julia package `PyPlot`. However, before posting an issue on the PyPlot project I would like to try and make sure that it's not an issue with my use of Nix. Hence, my question: Is anyone here using Julia as a Nix-package to create plots with matplotlib through PyPlot in the cli, or in an IJulia notebook? If so, how did you get it working?
Personally, I use Julia wrong (general purpose data crunching, little
enough plotting to just use gnuplot). While I know how to fix the build,
I have no idea how to use IJulia.
I currently lack time for learning it, but I guess I could do some quick
strace-ing if given a step-by step instruction (doing X expected Y
observed Z).
More information about the nix-dev
mailing list