Commit 5a350015 authored by Tobias WEBER's avatar Tobias WEBER
Browse files

cosmetic change

parent 79569cbb
......@@ -24,6 +24,13 @@ Plotter::Plotter(QWidget *parent) : QWidget(parent)
Plotter::~Plotter()
{
Clear();
}
void Plotter::Clear()
{
m_pPlotter->clearGraphs();
}
......@@ -36,7 +43,7 @@ void Plotter::Plot(const Dataset &dataset)
0xffff0000, 0xff0000ff, 0xff009900, 0xff000000,
};
m_pPlotter->clearGraphs();
Clear();
t_real xmin = std::numeric_limits<t_real>::max();
t_real xmax = -xmin;
......
......@@ -27,6 +27,7 @@ public:
const QCustomPlot* GetPlotter() const { return m_pPlotter; }
void Plot(const Dataset &dataset);
void Clear();
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment