You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected keep aspect ratio to be disabled when an axis is in log scale, apparently not.
Exception:
python3.12/site-packages/matplotlib/scale.py:255: RuntimeWarning: overflow encountered in power
return np.power(self.base, values)
Traceback (most recent call last):
File "python3.12/site-packages/matplotlib/cbook.py", line 298, in process
func(*args, **kwargs)
File "silx/gui/plot/backends/BackendMatplotlib.py", line 1569, in _onMouseWheel
self._plot.onMouseWheel(int(x), int(y), event.step)
File "silx/gui/plot/PlotWidget.py", line 3650, in onMouseWheel
self._eventHandler.handleEvent("wheel", xPixel, yPixel, angleInDegrees)
File "silx/gui/plot/PlotInteraction.py", line 1861, in handleEvent
self._onWheel(*args, **kwargs)
File "silx/gui/plot/PlotInteraction.py", line 1885, in _onWheel
applyZoomToPlot(plotWidget, scale, (x, y), enabledAxes)
File "silx/src/silx/gui/plot/_utils/panzoom.py", line 179, in applyZoomToPlot
plot.setLimits(xMin, xMax, yMin, yMax, y2Min, y2Max)
File "silx/src/silx/gui/plot/PlotWidget.py", line 2745, in setLimits
self._notifyLimitsChanged()
File "silx/src/silx/gui/plot/PlotWidget.py", line 2619, in _notifyLimitsChanged
xRange = self._xAxis.getLimits()
^^^^^^^^^^^^^^^^^^^^^^^
File "silx/src/silx/gui/plot/items/axis.py", line 122, in getLimits
return self._internalGetLimits()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "silx/src/silx/gui/plot/items/axis.py", line 414, in _internalGetLimits
return self._getBackend().getGraphXLimits()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "silx/src/silx/gui/plot/backends/BackendMatplotlib.py", line 1210, in getGraphXLimits
self.ax.apply_aspect()
File "python3.12/site-packages/matplotlib/axes/_base.py", line 2025, in apply_aspect
self.set_ybound(y_trf.inverted().transform([y0, y1]))
File "python3.12/site-packages/matplotlib/axes/_base.py", line 3871, in set_ybound
self.set_ylim(sorted((lower, upper),
File "python3.12/site-packages/matplotlib/axes/_base.py", line 3973, in set_ylim
return self.yaxis._set_lim(bottom, top, emit=emit, auto=auto)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "python3.12/site-packages/matplotlib/axis.py", line 1237, in _set_lim
v1 = self.axes._validate_converted_limits(v1, self.convert_units)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "python3.12/site-packages/matplotlib/axes/_base.py", line 3660, in _validate_converted_limits
raise ValueError("Axis limits cannot be NaN or Inf")
ValueError: Axis limits cannot be NaN or Inf
The text was updated successfully, but these errors were encountered:
Tested with python3.12, matplotlib 3.9.4 and 3.10.
To reproduce:
and zoom with the mouse wheel.
I expected keep aspect ratio to be disabled when an axis is in log scale, apparently not.
Exception:
The text was updated successfully, but these errors were encountered: