Commit 2c28045f authored by LM's avatar LM

Fixed another plot scaling bug

parent ae162cec
......@@ -259,10 +259,10 @@ void IncrementalPlot::resetScaling()
void IncrementalPlot::updateScale()
{
const double margin = 0.05;
double xMinRange = xmin-(xmin*margin);
double xMaxRange = xmax+(xmax*margin);
double yMinRange = ymin-(ymin*margin);
double yMaxRange = ymax+(ymax*margin);
double xMinRange = xmin-(qAbs(xmin*margin));
double xMaxRange = xmax+(qAbs(xmax*margin));
double yMinRange = ymin-(qAbs(ymin*margin));
double yMaxRange = ymax+(qAbs(ymax*margin));
if (symmetric) {
double xRange = xMaxRange - xMinRange;
double yRange = yMaxRange - yMinRange;
......
Markdown is supported
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