Matplot++ – A Plotting Tool for C++
github.com
github.com
It would be great to be able to do this directly within code and conditionally turn it on/off for debugging using some #ifdefs.
I just hope the compile times aren’t atrocious or that some kind of interactive mode is possible.
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
Another great plotting library for C++, if you can use Qt, is Qwt:
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).
The posted library does look nicer though.
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.
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.
Is is a new project or has it been around for some time? Github history shows only commits from Aug 2020 onwards only..