Skip to content
Snippets Groups Projects
Commit 8299cea4 authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

first implementation of legend

parent 44d672dc
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,7 @@ void I0MMonPlot::setSources(const QString &x, const QString &y, const QMap<int,
m_lambdas = lambdamap;
m_time_mode = (x == "time");
m_reset_scales();
int la = 1;
foreach(double l, lambdamap.values()) {
QString cuna = QString("lambda %1").arg(l);
QuPlotCurve *crv = curve(cuna);
......@@ -77,6 +78,7 @@ void I0MMonPlot::setSources(const QString &x, const QString &y, const QMap<int,
QPen p = crv->pen();
p.setWidthF(2.5);
crv->setPen(p);
crv->setTitle(QString("λ %1").arg(la++));
}
m_curvesymap[cuna] = m_symstyles[m_curvesymap.size() % m_symstyles.size()];
}
......
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