ZoomOnWheel¶
- class ZoomOnWheel(figure=None, scale_factor=1.1)[source]¶
Class providing zoom on wheel interaction to a matplotlib Figure.
This class extends the MplInteraction class.
Supports subplots, twin Axes and log scales.
- Parameters:
figure (figure) – The matplotlib figure to attach the behavior to.
scale_factor (float) – The scale factor to apply on wheel event.
Attributes
- figure¶
The Figure this interaction is connected to or None if not connected.
Methods
- disconnect()¶
Disconnect interaction from Figure.