#include "xplot/xfigure.hpp" #include "xplot/xmarks.hpp" #include "xplot/xaxes.hpp" xpl::linear_scale xs, ys; xpl::lines line(xs, ys); line.x = std::vector({0.0, 0.5, 1.0, 1.1, 1.2, 1.4, 1.7}); line.y = std::vector({0.0, 0.7, 0.5, 1.1, 1.2, 1.2, 2.0}); xpl::label label(xs, ys); label.x = std::vector{0.5, 1.0, 1.1, 1.2, 1.4}; label.y = std::vector{0.7, 0.5, 1.1, 1.2, 1.2}; label.text = std::vector{"Test", "label", "for", "the", "data."}; label.colors = std::vector{"orange", "red"}; label.font_weight = "bolder"; label.default_size = 26; xpl::axis hx(xs), hy(ys); hy.orientation = "vertical"; xpl::figure fig; fig.add_mark(line); fig.add_mark(label); fig.add_axis(hx); fig.add_axis(hy); fig