|
49 | 49 | from weakref import WeakKeyDictionary |
50 | 50 |
|
51 | 51 | import numpy as np |
52 | | -import matplotlib.cbook as cbook |
53 | | -import matplotlib.colors as colors |
54 | | -import matplotlib.transforms as transforms |
55 | | -import matplotlib.widgets as widgets |
56 | | -from matplotlib import rcParams |
57 | | -from matplotlib import is_interactive |
58 | | -from matplotlib import get_backend |
59 | | -from matplotlib import lines |
60 | | -from matplotlib._pylab_helpers import Gcf |
61 | 52 |
|
| 53 | +from matplotlib import ( |
| 54 | + backend_tools as tools, cbook, colors, textpath, tight_bbox, transforms, |
| 55 | + widgets, get_backend, is_interactive, rcParams) |
| 56 | +from matplotlib._pylab_helpers import Gcf |
62 | 57 | from matplotlib.transforms import Bbox, TransformedBbox, Affine2D |
63 | | - |
64 | | -import matplotlib.tight_bbox as tight_bbox |
65 | | -import matplotlib.textpath as textpath |
66 | 58 | from matplotlib.path import Path |
67 | | -from matplotlib.cbook import warn_deprecated |
68 | | -import matplotlib.backend_tools as tools |
69 | 59 |
|
70 | 60 | try: |
71 | 61 | from PIL import Image |
@@ -2383,7 +2373,7 @@ def on_press(event): |
2383 | 2373 |
|
2384 | 2374 | """ |
2385 | 2375 | if s == 'idle_event': |
2386 | | - warn_deprecated(1.5, |
| 2376 | + cbook.warn_deprecated(1.5, |
2387 | 2377 | "idle_event is only implemented for the wx backend, and will " |
2388 | 2378 | "be removed in matplotlib 2.1. Use the animations module " |
2389 | 2379 | "instead.") |
|
0 commit comments