Skip to content

Commit 5630a97

Browse files
committed
Merge pull request matplotlib#5010 from QuLogic/custom-axes-view-whatsnew
DOC: Add information on new views for custom Axes.
2 parents 349ff97 + b9ceb0b commit 5630a97

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
New API for custom Axes view changes
2+
````````````````````````````````````
3+
4+
Interactive pan and zoom were previously implemented using a Cartesian-specific
5+
algorithm that was not necessarily applicable to custom Axes. Three new private
6+
methods, :meth:`~matplotlib.axes._base._AxesBase._get_view`,
7+
:meth:`~matplotlib.axes._base._AxesBase._set_view`, and
8+
:meth:`~matplotlib.axes._base._AxesBase._set_view_from_bbox`, allow for custom
9+
``Axes`` classes to override the pan and zoom algorithms. Implementors of
10+
custom ``Axes`` who override these methods may provide suitable behaviour for
11+
both pan and zoom as well as the view navigation buttons on the interactive
12+
toolbars.

0 commit comments

Comments
 (0)