Re:A new release for GNU Octave
by Der_Einzige on Sunday January 03, 2021 @09:16AM
(#25621873)
Matplotlib is terrible (once you get to the point that you need to do non trivial things with it), that's why you use the excellent plotting library for python called "Bokeh"
[ Parent
| on HN ]
could you give an example of an "non-trivial" thing you're talking about (i.e a few lines of code)? And how you solve it with "Bokeh"?
I agree that matplotlib's functional interface is somewhat messy, but that is somewhat historical, and stems from wanting to mimic how matlab works. I personally find matplotlib's OO interface both very powerful, and somewhat intuitive, once one gets a hang of it, hence I'm curious of specific cases where it fails for you.
Re:A new release for GNU Octave
by Der_Einzige on Sunday January 03, 2021 @11:10PM
(#25627859)
See my other post in this comment chain. Matplotlib is not good with handling large (e.g. more than 100K) datapoints in 2D or 3D if you want interactivity or animations. Bokeh handles it like a champ!
Never really looked into it; I'll have a closer look. What do you think is its strengths?
Re:A new release for GNU Octave
by Der_Einzige on Sunday January 03, 2021 @09:20AM
(#25621903)
For me? I care mainly about 2D and 3D scatter plots of large datasets. The GPU acceleration and automatic subsampling means that animated or interactive scatter plots of large amounts of data (for me it's language vectors) is super easy and fast rather than slow and crappy with matplotlib...
(I think matplotlib has an openGL backend that slightly improves but doesn't fix the issues with matplotlibs handling of large datasets)