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

fix min/max in default case

parent 3ed1953b
No related branches found
No related tags found
No related merge requests found
...@@ -479,10 +479,16 @@ static void drawGraph(drawContext *ctx, PView *p, double xleft, double ytop, ...@@ -479,10 +479,16 @@ static void drawGraph(drawContext *ctx, PView *p, double xleft, double ytop,
opt->tmpMin = data->getMin(opt->timeStep); opt->tmpMin = data->getMin(opt->timeStep);
opt->tmpMax = data->getMax(opt->timeStep); opt->tmpMax = data->getMax(opt->timeStep);
} }
else{ else if(opt->abscissaRangeType == PViewOptions::Custom){
// FIXME: should also compute min/max for reduced abscissa range over all
// steps
opt->tmpMin = ymin; opt->tmpMin = ymin;
opt->tmpMax = ymax; opt->tmpMax = ymax;
} }
else {
opt->tmpMin = data->getMin();
opt->tmpMax = data->getMax();
}
if(opt->scaleType == PViewOptions::Logarithmic){ if(opt->scaleType == PViewOptions::Logarithmic){
opt->tmpMin = log10(opt->tmpMin); opt->tmpMin = log10(opt->tmpMin);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment