Skip to content

Commit

Permalink
- Also add the legend for parameters
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8465 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 2, 2011
1 parent a2ae4e7 commit a0b006f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions OMPlot/OMPlotGUI/PlotWindow.cpp
Expand Up @@ -376,8 +376,9 @@ void PlotWindow::plot(QStringList variables)

if(variables[0] == "")
{
for (int i = 0; i < reader.nall; i++)
for (int i = 0; i < reader.nall; i++) {
variables.append(reader.allInfo[i].name);
}
variables.removeFirst();
}

Expand All @@ -401,11 +402,6 @@ void PlotWindow::plot(QStringList variables)
pPlotCurve->addYAxisValue(vals[j]);
}

pPlotCurve->setTitle(variables[i]);
// pPlotCurve->setXAxisPointer(timeVals);
// pPlotCurve->setYAxisPointer(vals);
// pPlotCurve->setNumberOfValues(reader.nrows);

} else {
double val;
double startStop[2] = {startTime,stopTime};
Expand All @@ -416,6 +412,7 @@ void PlotWindow::plot(QStringList variables)
vals[1] = val;
pPlotCurve->setData(startStop,vals,2);
}
pPlotCurve->setTitle(variables[i]);

//Set curvename and push back to list

Expand Down

0 comments on commit a0b006f

Please sign in to comment.