|
10 | 10 | from matplotlib.widgets import SubplotTool
|
11 | 11 |
|
12 | 12 |
|
13 |
| -######################################################################## |
14 |
| -# |
15 |
| -# The following functions and classes are for pylab and implement |
16 |
| -# window/figure managers, etc... |
17 |
| -# |
18 |
| -######################################################################## |
19 |
| - |
20 |
| - |
21 | 13 | class TimerMac(_macosx.Timer, TimerBase):
|
22 | 14 | """Subclass of `.TimerBase` using CFRunLoop timer events."""
|
23 | 15 | # completely implemented at the C-level (in _macosx.Timer)
|
24 | 16 |
|
25 | 17 |
|
26 | 18 | class FigureCanvasMac(_macosx.FigureCanvas, FigureCanvasAgg):
|
27 |
| - """ |
28 |
| - The canvas the figure renders into. Calls the draw and print fig |
29 |
| - methods, creates the renderers, etc... |
30 |
| -
|
31 |
| - Events such as button presses, mouse movements, and key presses |
32 |
| - are handled in the C code and the base class methods |
33 |
| - button_press_event, button_release_event, motion_notify_event, |
34 |
| - key_press_event, and key_release_event are called from there. |
35 |
| -
|
36 |
| - Attributes |
37 |
| - ---------- |
38 |
| - figure : `matplotlib.figure.Figure` |
39 |
| - A high-level Figure instance |
40 |
| - """ |
| 19 | + # docstring inherited |
| 20 | + |
| 21 | + # Events such as button presses, mouse movements, and key presses |
| 22 | + # are handled in the C code and the base class methods |
| 23 | + # button_press_event, button_release_event, motion_notify_event, |
| 24 | + # key_press_event, and key_release_event are called from there. |
41 | 25 |
|
42 | 26 | required_interactive_framework = "macosx"
|
43 | 27 | _timer_cls = TimerMac
|
@@ -147,12 +131,6 @@ def set_message(self, message):
|
147 | 131 | _macosx.NavigationToolbar2.set_message(self, message.encode('utf-8'))
|
148 | 132 |
|
149 | 133 |
|
150 |
| -######################################################################## |
151 |
| -# |
152 |
| -# Now just provide the standard names that backend.__init__ is expecting |
153 |
| -# |
154 |
| -######################################################################## |
155 |
| - |
156 | 134 | @_Backend.export
|
157 | 135 | class _BackendMac(_Backend):
|
158 | 136 | FigureCanvas = FigureCanvasMac
|
|
0 commit comments