Live data from Hacker News

Gnuplotlib: A gnuplot-based plotting backend for NumPy

github.com

1–10 of 69 posts

Re: Gnuplotlib: A gnuplot-based plotting backend for NumPy

#4

I've found Lets-Plots [0] to my least painful plotting option for Python so far. I'm so used to the grammar of graphics from ggplot, especially compared to plotting in matplotlib or seaborn. 0: https://lets-plot.org/

Vega-Altair is pretty great as well. It uses a grammar of graphics that’s slightly different from ggplot, but has most of the same advantages.

https://altair-viz.github.io/

Re: Gnuplotlib: A gnuplot-based plotting backend for NumPy

#5
Does it implement the greedy matching/parsing of gnuplot? Doesn't look like it?

  pl 'data.dat' u 1:3 w p pt 7 lc 3 tit 'Interesting measurements'
flows from my mind like breathing. I miss that brevity and speed so much when exploring datasets quickly in other languages....

It's not nearly as maintainable as more-verbose and well-specified languages, but it's far more readable than regex :).

Edit to add: simply plotting a two-column data file in Gnuplot is as simple as:

  pl 'data.dat'
the above plots the third column against the first column with blue circular dots and applies annotated text to the key/legend, as I prefer to do when exploring data for the first time...

Re: Gnuplotlib: A gnuplot-based plotting backend for NumPy

#6
post #5

Does it implement the greedy matching/parsing of gnuplot? Doesn't look like it? pl 'data.dat' u 1:3 w p pt 7 lc 3 tit 'Interesting measurements' flows from my mind like breathing. I miss that brevity and speed so much when exploring datasets quickly in other languages.... It's not nearly as maintainable as more-verbose and well-specified languages, but it's far more readable than regex :). Edit to add: simply plottin…

Just curious....can you tell me what that means? I was actually looking at gnuplot earlier, but it always intimidates me.

Edit: you responded fast with your edit, but can you explain the full command -verbose? :)

Re: Gnuplotlib: A gnuplot-based plotting backend for NumPy

#8
post #5

Does it implement the greedy matching/parsing of gnuplot? Doesn't look like it? pl 'data.dat' u 1:3 w p pt 7 lc 3 tit 'Interesting measurements' flows from my mind like breathing. I miss that brevity and speed so much when exploring datasets quickly in other languages.... It's not nearly as maintainable as more-verbose and well-specified languages, but it's far more readable than regex :). Edit to add: simply plottin…

Just curious....can you tell me what that means? I was actually looking at gnuplot earlier, but it always intimidates me. Edit: you responded fast with your edit, but can you explain the full command -verbose? :)

The command is equivalent to the more verbose:

  plot 'data.dat' using 1:3 with points pointtype 7 linecolor 3 title 'Interesting measurements'

Re: Gnuplotlib: A gnuplot-based plotting backend for NumPy

#9
post #3

What'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.

Post reply on HN