This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
def zoom_factory(ax,base_scale = 1.1): | |
""" | |
parameters | |
---------- | |
ax : matplotlib axes object | |
axis on which to implement scroll to zoom | |
base_scale : float | |
how much zoom on each tick of scroll wheel |