Skip to content
Snippets Groups Projects
Commit 83a671f9 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

use time vals if avail
parent 8dc55d12
No related branches found
No related tags found
No related merge requests found
// $Id: Graph2D.cpp,v 1.66 2007-09-11 13:54:34 geuzaine Exp $ // $Id: Graph2D.cpp,v 1.67 2007-09-12 05:08:12 geuzaine Exp $
// //
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
// //
...@@ -104,7 +104,7 @@ static bool getGraphData(PView *p, std::vector<double> &x, double &xmin, ...@@ -104,7 +104,7 @@ static bool getGraphData(PView *p, std::vector<double> &x, double &xmin,
y[0].push_back(vy); y[0].push_back(vy);
} }
else{ else{
if(!numy) x.push_back(ts); if(!numy) x.push_back(data->getTime(ts));
y[numy].push_back(vy); y[numy].push_back(vy);
} }
} }
...@@ -137,8 +137,8 @@ static bool getGraphData(PView *p, std::vector<double> &x, double &xmin, ...@@ -137,8 +137,8 @@ static bool getGraphData(PView *p, std::vector<double> &x, double &xmin,
} }
} }
else{ else{
xmin = 0; xmin = data->getTime(0);
xmax = data->getNumTimeSteps() - 1; xmax = data->getTime(data->getNumTimeSteps() - 1);
} }
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment