KriviAS 1 год назад
Родитель 68dd12a06f
Сommit 37a21ea610

@ -0,0 +1,24 @@
#include <iostream>
#include <vector>
using namespace std;
void
svg_begin(double width, double height) {
cout << "<?xml version='1.0' encoding='UTF-8'?>\n";
cout << "<svg ";
cout << "width='" << width << "' ";
cout << "height='" << height << "' ";
cout << "viewBox='0 0 " << width << " " << height << "' ";
cout << "xmlns='http://www.w3.org/2000/svg'>\n";
}
void
svg_end() {
cout << "</svg>\n";
}
void
show_histogram_svg(const vector <double>& bins) {
svg_begin(400, 300);
svg_end();
}

@ -0,0 +1,7 @@
#ifndef SVG_H_INCLUDED
#define SVG_H_INCLUDED
void
show_histogram_svg(const std::vector<double>& bins);
#endif // SVG_H_INCLUDED
Загрузка…
Отмена
Сохранить