|
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 mplDeprecation, warn_deprecated |
68 |
| -import matplotlib.backend_tools as tools |
69 | 59 |
|
70 | 60 | try:
|
71 | 61 | from PIL import Image
|
@@ -2384,7 +2374,7 @@ def on_press(event):
|
2384 | 2374 |
|
2385 | 2375 | """
|
2386 | 2376 | if s == 'idle_event':
|
2387 |
| - warn_deprecated(1.5, |
| 2377 | + cbook.warn_deprecated(1.5, |
2388 | 2378 | "idle_event is only implemented for the wx backend, and will "
|
2389 | 2379 | "be removed in matplotlib 2.1. Use the animations module "
|
2390 | 2380 | "instead.")
|
|
0 commit comments