A modern C++ scientific plotting library powered by gnuplot
A modern C++ scientific plotting library powered by gnuplot
So, you have an amazing C++ application for which you need plotting capabilities. You have searched around and discovered that the available options for C++ plotting libraries is rather limited compared to other programming languages, such as Python, for example, which has matplotlib.
The goal of the sciplot project is to enable you, C++ programmer, to conveniently plot beautiful graphs as easy as in other high-level programming languages. sciplot is a header-only library that needs a C++17-capable compiler, but has no external dependencies for compiling. The only external runtime dependencies are gnuplot-palettes for providing color palettes and a gnuplot executable.
Here is an example of sciplot in action:
…
After compiling and executing this C++ application, the following plot (example-readme.svg) is produced:
Do you want to change the colors?
Simple - just use method Plot::palette to set your preferred color palette. For example, using plot.palette("parula") in the previous code sets the parula color scheme and produces the following plot:
All available color palettes and their names can be found here. Many thanks to Anna Schneider for this incredible work of art!
No open issues yet, or sync has not completed.