The HN post title should probably not include "non-painful" given that the README never uses that phrase or compares against other plotting libraries.
Gnuplotlib: A gnuplot-based plotting backend for NumPy
21–30 of 69 posts
Re: Gnuplotlib: A gnuplot-based plotting backend for NumPy
#22The HN post title should probably not include "non-painful" given that the README never uses that phrase or compares against other plotting libraries.
Why?
Therefore, the title should be “gnuplot for numpy.”
Re: Gnuplotlib: A gnuplot-based plotting backend for NumPy
#23What's wrong with matplotlib? I might be living under a rock...
I always find it easier to produce publication-quality figures using gnuplot (but not with its defaults settings, mind you) than with Matplotlib. Check out http://gnuplotting.org/ Also, it's hard to beat gnuplot's speed refreshing a live scatter plot with many thousands of points using the x11 terminal.
And I usually keep computation and plotting separate. Computation produces data files, and a gnuplot script generates plots. This separation of computation and plotting allows updating charts later if needed, collected data can be reused in other plots, and additional data analysis can be performed and charts can be augmented.
So I personally don't see many advantages from integrating chart generation into computational pipeline itself (except for computation monitoring or maybe when user response is needed to direct computation). Because of that, libraries that encourage charts generation from a computed array instead of dumping that data into persisted files feels like an anti-pattern to me.
Re: Gnuplotlib: A gnuplot-based plotting backend for NumPy
#24What's wrong with matplotlib? I might be living under a rock...
from matplotlib import pyplot as plt
WTF? Broken from right there. What's a plt? "o" key broken? Why didn't they just call it pyplot? Why not just import pyplot
pyplot.plot(lambda x: math.sin(x))
pyplot.plot(x=[0,1,2],y=[0,2,4])Re: Gnuplotlib: A gnuplot-based plotting backend for NumPy
#25What's wrong with matplotlib? I might be living under a rock...
Re: Gnuplotlib: A gnuplot-based plotting backend for NumPy
#26What's wrong with matplotlib? I might be living under a rock...
from matplotlib import pyplot as plt WTF? Broken from right there. What's a plt? "o" key broken? Why didn't they just call it pyplot? Why not just import pyplot pyplot.plot(lambda x: math.sin(x)) pyplot.plot(x=[0,1,2],y=[0,2,4])
Re: Gnuplotlib: A gnuplot-based plotting backend for NumPy
#27Just a comment for the repo owners: insert images for each code example!
Re: Gnuplotlib: A gnuplot-based plotting backend for NumPy
#28Earlier quoted context omitted.
I always find it easier to produce publication-quality figures using gnuplot (but not with its defaults settings, mind you) than with Matplotlib. Check out http://gnuplotting.org/ Also, it's hard to beat gnuplot's speed refreshing a live scatter plot with many thousands of points using the x11 terminal.
I'm using gnuplot for plotting too (the actual gnuplot application not a library that uses gnuplot as its backend). And I usually keep computation and plotting separate. Computation produces data files, and a gnuplot script generates plots. This separation of computation and plotting allows updating charts later if needed, collected data can be reused in other plots, and additional data analysis can be performed and…
Re: Gnuplotlib: A gnuplot-based plotting backend for NumPy
#29Re: Gnuplotlib: A gnuplot-based plotting backend for NumPy
#30You gave to call fig.canvas.draw but it doesn't always work and sometimes plt.pause works but sometimes it only partially updates the display and you have to call it multiple times. (At least this in is my experience with TkAgg backend.)
Meanwhile you can't interact with it.
I would love a version of matplotlib which lives in a separate process and gets updated via nonblocking communication.