Skip to content

Commit

Permalink
Merge commit 'f7f1512'
Browse files Browse the repository at this point in the history
  • Loading branch information
highperformancecoder committed Feb 9, 2024
2 parents 793fb2c + f7f1512 commit 6b98d63
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/plot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,11 @@ namespace ecolab
double tickIncrement, tick;
computeIncrementAndOffset(minx, maxx, nxTicks, tickIncrement, tick);
if ((maxx-tick)>100*tickIncrement) minx=tick;
computeIncrementAndOffset(miny, maxy, nyTicks, tickIncrement, tick);
if ((maxy-tick)>100*tickIncrement) miny=tick;
if (isfinite(miny) && isfinite(maxy))
{
computeIncrementAndOffset(miny, maxy, nyTicks, tickIncrement, tick);
if ((maxy-tick)>100*tickIncrement) miny=tick;
}
if (isfinite(miny1) && isfinite(maxy1))
{
computeIncrementAndOffset(miny1, maxy1, nyTicks, tickIncrement, tick);
Expand Down

0 comments on commit 6b98d63

Please sign in to comment.