Basic C++ plotting.
To use, set up a Figure
or Plot2D
, add elements to it, and then write with .write("output.svg")
.
Elements are drawn hierarchically, but generally in reverse order, so you should add your most important elements first.
Elements can have a "style index" which simultaneously loops through colour/dash/hatch sequences, for increased greyscale/colourblind support.
Files | |
file | plot.h |
Classes | |
class | signalsmith::plot::PlotStyle |
Plotting style, used for both layout and SVG rendering. More... | |
struct | signalsmith::plot::Bounds |
struct | signalsmith::plot::Point2D |
class | signalsmith::plot::SvgWriter |
Wrapper for slightly more semantic code when writing SVGs. More... | |
class | signalsmith::plot::SvgDrawable |
Any drawable element. More... | |
class | signalsmith::plot::SvgFileDrawable |
Top-level objects which can generate SVG files. More... | |
struct | signalsmith::plot::Tick |
A labelled point on an axis. More... | |
class | signalsmith::plot::Axis |
A map from values to screen-space. More... | |
class | signalsmith::plot::TextLabel |
class | signalsmith::plot::Line2D |
A line on a 2D plot, with fill and/or stroke. More... | |
class | signalsmith::plot::Legend |
class | signalsmith::plot::Image |
class | signalsmith::plot::Plot2D |
class | signalsmith::plot::Cell |
class | signalsmith::plot::Grid |
class | signalsmith::plot::Figure |