diff --git a/svg.h b/svg.h new file mode 100644 index 0000000..57cd26c --- /dev/null +++ b/svg.h @@ -0,0 +1,12 @@ +#ifndef SVG_H_INCLUDED +#define SVG_H_INCLUDED +#include +#include + +void svg_begin(double width, double height); +void svg_end(); +void svg_text(double left, double baseline, std::string text); +void svg_rect(double x, double y, double width, double height, std::string stroke, std::string fill); +void show_histogram_svg(const std::vector& bins, const std::string& fill, const std::string& stroke); + +#endif // SVG_H_INCLUDED