Nope. Ranges are anything enumerable (can run an iterator through it by calling begin()/end() to get the boundaries), so you can do lists, arrays, generators etc.
Wow this looks incredible! I’ve been looking for a C++ plotting library suitable for real-time audio visualization but with a matplotlib-like api. This looks to fit the bill perfectly, and with great documentation. Well done, following.
You can distribute the modifications as patches and precompiled binaries with the attendant patches, so it seems like it should be fine?
Not having gone into the source I'd guess that possible problems might be the code not being factored to make it easy to be called as a library (unlike e.g. curl), or perhaps compiling gnuplot for windows might be problematic. You might be able to go pretty far by bundling a statically-linked gnuplot binary and shelling out? No experience with windows development here so I'm just speculating.
Wow, I would have sworn it was a GNU project if someone had asked. It just seems so typical of a GNU project: free, open source, around for as long as I can remember, available on every Linux but with a dated look and feel.
It’s pretty amazing to be reading the examples and almost feel like it’s code for matplotlib save an auto or angle brackets here and there. I’ve spent hours waiting for matplotlib to render data over the years.
I just hope the compile times aren’t atrocious or that some kind of interactive mode is possible.
Looks absolutely incredible. Sort of matplotlib for c++, will look into the internals when I have the time.
Seems like everything for Python these days is matplotlib based; Whereas everything for R is ggplot2 based (but even the ggplot libraries for Python are mostly based on matplotlib).
This is amazing. I’ve been looking for something like this for a while.
It doesn’t do the one type of plot I actually want for the project I’m working on (x,y,z data as a 3d bar chart “surface”), but that takes nothing away from just how good this is.
20 comments
[ 2.7 ms ] story [ 57.4 ms ] threadIt would be great to be able to do this directly within code and conditionally turn it on/off for debugging using some #ifdefs.
Nope. Ranges are anything enumerable (can run an iterator through it by calling begin()/end() to get the boundaries), so you can do lists, arrays, generators etc.
Dependencies like gnuplot are nice on linux machines, but distributing it on Windows is always a little bit painful
> Permission to modify the software is granted, but not the right to distribute the complete modified source code.
https://sourceforge.net/p/gnuplot/gnuplot-main/ci/master/tre...
Not having gone into the source I'd guess that possible problems might be the code not being factored to make it easy to be called as a library (unlike e.g. curl), or perhaps compiling gnuplot for windows might be problematic. You might be able to go pretty far by bundling a statically-linked gnuplot binary and shelling out? No experience with windows development here so I'm just speculating.
Wikipedia has a section on this [1], and apparently it is not named after the GNU project, but after the animal.
[1] https://en.wikipedia.org/wiki/Gnuplot#Distribution_terms
Is is a new project or has it been around for some time? Github history shows only commits from Aug 2020 onwards only..
I just hope the compile times aren’t atrocious or that some kind of interactive mode is possible.
Seems like everything for Python these days is matplotlib based; Whereas everything for R is ggplot2 based (but even the ggplot libraries for Python are mostly based on matplotlib).
Another great plotting library for C++, if you can use Qt, is Qwt:
https://github.com/opencor/qwt https://qwt.sourceforge.io/
It doesn’t do the one type of plot I actually want for the project I’m working on (x,y,z data as a 3d bar chart “surface”), but that takes nothing away from just how good this is.
The posted library does look nicer though.