@@ -4190,17 +4190,16 @@ def start_pan(self, x, y, button):
41904190 """
41914191 Called when a pan operation has started.
41924192
4193- *x*, *y* are the mouse coordinates in display coords.
4194- button is the mouse button number:
4195-
4196- * 1: LEFT
4197- * 2: MIDDLE
4198- * 3: RIGHT
4199-
4200- .. note::
4201-
4202- Intended to be overridden by new projection types.
4193+ Parameters
4194+ ----------
4195+ x, y : float
4196+ The mouse coordinates in display coords.
4197+ button : `.MouseButton`
4198+ The pressed mouse button.
42034199
4200+ Notes
4201+ -----
4202+ This is intended to be overridden by new projection types.
42044203 """
42054204 self ._pan_start = types .SimpleNamespace (
42064205 lim = self .viewLim .frozen (),
@@ -4212,34 +4211,30 @@ def start_pan(self, x, y, button):
42124211
42134212 def end_pan (self ):
42144213 """
4215- Called when a pan operation completes (when the mouse button
4216- is up.)
4217-
4218- .. note::
4219-
4220- Intended to be overridden by new projection types.
4214+ Called when a pan operation completes (when the mouse button is up.)
42214215
4216+ Notes
4217+ -----
4218+ This is intended to be overridden by new projection types.
42224219 """
42234220 del self ._pan_start
42244221
42254222 def drag_pan (self , button , key , x , y ):
42264223 """
42274224 Called when the mouse moves during a pan operation.
42284225
4229- *button* is the mouse button number:
4230-
4231- * 1: LEFT
4232- * 2: MIDDLE
4233- * 3: RIGHT
4234-
4235- *key* is a "shift" key
4236-
4237- *x*, *y* are the mouse coordinates in display coords.
4238-
4239- .. note::
4240-
4241- Intended to be overridden by new projection types.
4226+ Parameters
4227+ ----------
4228+ button : `.MouseButton`
4229+ The pressed mouse button.
4230+ key : str or None
4231+ The pressed key, if any.
4232+ x, y : float
4233+ The mouse coordinates in display coords.
42424234
4235+ Notes
4236+ -----
4237+ This is intended to be overridden by new projection types.
42434238 """
42444239 def format_deltas (key , dx , dy ):
42454240 if key == 'control' :
0 commit comments