From dbe45a69e0dd9213a2b32d0a071b00f31c2eeebb Mon Sep 17 00:00:00 2001 From: "Sewa (DolganovVI)" Date: Mon, 5 May 2025 01:10:59 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2=D0=BE=D1=87=D0=BD=D1=8B=D0=B9=20=D1=84=D0=B0=D0=B9=D0=BB?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20svg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svg.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 svg.h diff --git a/svg.h b/svg.h new file mode 100644 index 0000000..5f65b81 --- /dev/null +++ b/svg.h @@ -0,0 +1,13 @@ +#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, const std::string& text); +void svg_rect(double x, double y, double width, double height, const std::string& stroke = "black", const std::string& fill = "black"); +void show_histogram_svg(const std::vector& bins); + +#endif // SVG_H_INCLUDED \ No newline at end of file