mpl_interactions.zoom_factory

mpl_interactions.zoom_factory(ax, base_scale=1.1)
Parameters
axmatplotlib axes object

axis on which to implement scroll to zoom

base_scalefloat

how much zoom on each tick of scroll wheel

Returns
disconnect_zoomfunction

call this to disconnect the scroll listener