diff --git a/UI/ui_plot.cpp b/UI/ui_plot.cpp index 4576e40..9a56895 100644 --- a/UI/ui_plot.cpp +++ b/UI/ui_plot.cpp @@ -50,6 +50,16 @@ void UI_plot::add_value(double x, double y) emit ui_changed(); } +const std::vector &UI_plot::x_vals() const +{ + return m_x_vals; +} + +const std::vector &UI_plot::y_vals() const +{ + return m_y_vals; +} + void UI_plot::clean_vals() { m_x_vals.clear(); diff --git a/UI/ui_plot.hpp b/UI/ui_plot.hpp index 7e445c7..8f2fa78 100644 --- a/UI/ui_plot.hpp +++ b/UI/ui_plot.hpp @@ -15,6 +15,8 @@ class UI_plot : public UI_item std::string y_label() const; void add_value(double y); void add_value(double x, double y); + const std::vector &x_vals() const; + const std::vector &y_vals() const; void clean_vals(); void from_json(const json &j) override;