diff --git a/python/port/mod/matplotlib/plot_store.cpp b/python/port/mod/matplotlib/plot_store.cpp index 633921eae..e13d6b511 100644 --- a/python/port/mod/matplotlib/plot_store.cpp +++ b/python/port/mod/matplotlib/plot_store.cpp @@ -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);