svg_plot icon indicating copy to clipboard operation
svg_plot copied to clipboard

Plot data in SVG format using C++ (header only) library .

svg_plot

Plot data in SVG format using C++ library.

With just a few lines of C++ code, the SVG_plot C++ library allows plotting of data (held in STL containers like vector and map), to be output as Scalable Vector Graphic files that can be viewed by all modern browsers.

1D, 2D and Boxplots can be produced, and there are a myriad of options to control appearance.

The plots are very high quality and can be expanded without loss of quality (no pixelation!) but are tiny, (compared to a Microsoft Excel plot, for example) and are easily and highly compressible, making them suitable for real-time transmission and update.

The SVG_plot project was originally written by Jake Voytko in 2007 as a Boost-sponsored Google Summer of Code project in 2007. It has been maintained and enhanced since then in Boost Sandbox, but is judged unsuitable for a Boost Library, so now being made more widely available here.

Version 2 adds representation of uncertainty estimates as numbers and zones and allows far more control of font sizes and appearance controls.

The develop branch is obselete, and the main branch and documentation is under major revision (Apr 2021) and is not yet usable.

Boost License.