mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
[python] matplotlib: fix automatic range initialization
This commit is contained in:
@@ -183,7 +183,7 @@ void PlotStore::initRange() {
|
||||
float x = rectangle.x();
|
||||
float y = rectangle.y();
|
||||
updateRange(&xMin, &xMax, &yMin, &yMax, x, y);
|
||||
updateRange(&xMin, &xMax, &yMin, &yMax, x + rectangle.width(), y + rectangle.height());
|
||||
updateRange(&xMin, &xMax, &yMin, &yMax, x + rectangle.width(), y - rectangle.height());
|
||||
}
|
||||
checkPositiveRangeAndAddMargin(&xMin, &xMax);
|
||||
checkPositiveRangeAndAddMargin(&yMin, &yMax);
|
||||
|
||||
Reference in New Issue
Block a user