|
33 | 33 | import matplotlib.ticker as mticker |
34 | 34 | import matplotlib.transforms as mtransforms |
35 | 35 | import matplotlib.tri as mtri |
36 | | -from matplotlib.cbook import ( |
37 | | - MatplotlibDeprecationWarning, warn_deprecated, STEP_LOOKUP_MAP, iterable, |
38 | | - safe_first_element) |
| 36 | +from matplotlib.cbook import iterable |
39 | 37 | from matplotlib.container import BarContainer, ErrorbarContainer, StemContainer |
40 | 38 | from matplotlib.axes._base import _AxesBase, _process_plot_format |
41 | 39 |
|
@@ -566,9 +564,6 @@ def indicate_inset(self, bounds, inset_ax=None, *, transform=None, |
566 | 564 |
|
567 | 565 | if inset_ax is not None: |
568 | 566 | # want to connect the indicator to the rect.... |
569 | | - |
570 | | - pos = inset_ax.get_position() # this is in fig-fraction. |
571 | | - coordsA = 'axes fraction' |
572 | 567 | connects = [] |
573 | 568 | xr = [bounds[0], bounds[0]+bounds[2]] |
574 | 569 | yr = [bounds[1], bounds[1]+bounds[3]] |
@@ -3185,7 +3180,7 @@ def extract_err(err, data): |
3185 | 3180 | # being accepted, when the user meant the 2xN transpose. |
3186 | 3181 | # special case for empty lists |
3187 | 3182 | if len(err) > 1: |
3188 | | - fe = safe_first_element(err) |
| 3183 | + fe = cbook.safe_first_element(err) |
3189 | 3184 | if len(err) != len(data) or np.size(fe) > 1: |
3190 | 3185 | raise ValueError("err must be [ scalar | N, Nx1 " |
3191 | 3186 | "or 2xN array-like ]") |
@@ -5047,7 +5042,7 @@ def fill_between(self, x, y1, y2=0, where=None, interpolate=False, |
5047 | 5042 | y1slice = y1[ind0:ind1] |
5048 | 5043 | y2slice = y2[ind0:ind1] |
5049 | 5044 | if step is not None: |
5050 | | - step_func = STEP_LOOKUP_MAP["steps-" + step] |
| 5045 | + step_func = cbook.STEP_LOOKUP_MAP["steps-" + step] |
5051 | 5046 | xslice, y1slice, y2slice = step_func(xslice, y1slice, y2slice) |
5052 | 5047 |
|
5053 | 5048 | if not len(xslice): |
@@ -5230,7 +5225,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None, |
5230 | 5225 | x1slice = x1[ind0:ind1] |
5231 | 5226 | x2slice = x2[ind0:ind1] |
5232 | 5227 | if step is not None: |
5233 | | - step_func = STEP_LOOKUP_MAP["steps-" + step] |
| 5228 | + step_func = cbook.STEP_LOOKUP_MAP["steps-" + step] |
5234 | 5229 | yslice, x1slice, x2slice = step_func(yslice, x1slice, x2slice) |
5235 | 5230 |
|
5236 | 5231 | if not len(yslice): |
|
0 commit comments