diff --git a/svg.cpp b/svg.cpp new file mode 100644 index 0000000..a7753a0 --- /dev/null +++ b/svg.cpp @@ -0,0 +1,33 @@ +#include +#include +#include +#include +#include "svg.h" +#include "text.h" +using namespace std; + +void +svg_begin(double width, double height) { + cout << "\n"; + cout << "\n"; +} + +void +svg_end() { + cout << "\n"; +} + +void +show_histogram_svg(const vector& bins) { + svg_begin(400, 300); + svg_text(20, 20, to_string(bins[0])); + svg_end(); +} + +void svg_text(double left, double baseline, string text){ + cout << "text x='" << left << "' y='" << baseline << "'>text"; + }