Skip to content

Commit 442e6aa

Browse files
committed
Remove v0.6 deprecated class names
1 parent 96111c5 commit 442e6aa

File tree

4 files changed

+3
-44
lines changed

4 files changed

+3
-44
lines changed

proplot/axes/__init__.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"""
55
import matplotlib.projections as mproj
66

7-
from ..internals import warnings
87
from . import plot
98
from .base import Axes # noqa: F401
109
from .cartesian import CartesianAxes
@@ -14,12 +13,6 @@
1413
from .polar import PolarAxes
1514
from .three import Axes3D # noqa: F401
1615

17-
XYAxes, ProjAxes = warnings._rename_objs(
18-
'0.6',
19-
XYAxes=CartesianAxes,
20-
ProjAxes=GeoAxes,
21-
)
22-
2316
mproj.register_projection(CartesianAxes)
2417
mproj.register_projection(PolarAxes)
2518
mproj.register_projection(BasemapAxes)
@@ -35,8 +28,5 @@
3528
'CartopyAxes',
3629
'BasemapAxes',
3730
'Axes3D',
38-
# Deprecated
39-
'XYAxes',
40-
'ProjAxes',
4131
]
4232
__all__.extend(plot.__all__) # document wrappers as part of proplot/axes submodule

proplot/colors.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@
3131
'LinearSegmentedNorm',
3232
'ColorDatabase',
3333
'ColormapDatabase',
34-
# Deprecated
35-
'BinNorm',
36-
'MidpointNorm',
37-
'ColorDict',
38-
'CmapDict',
3934
]
4035

4136
# Constants
@@ -2582,16 +2577,3 @@ def _sanitize_key(self, key, mirror=True):
25822577
}
25832578
_cmap_database = ColormapDatabase(_cmap_database)
25842579
setattr(mcm, _cmap_database_attr, _cmap_database)
2585-
2586-
# Deprecations
2587-
CmapDict, ColorDict, MidpointNorm, BinNorm = warnings._rename_objs(
2588-
'0.6',
2589-
CmapDict=ColormapDatabase,
2590-
ColorDict=ColorDatabase,
2591-
MidpointNorm=DivergingNorm,
2592-
BinNorm=DiscreteNorm
2593-
)
2594-
make_mapping_array = warnings._rename_objs(
2595-
'0.7',
2596-
make_mapping_array=_make_lookup_table
2597-
)

proplot/config.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ def get_ipython():
4949
'register_fonts',
5050
'config_inline_backend',
5151
'use_style',
52-
# Deprecated
53-
'inline_backend_fmt',
54-
'rc_configurator',
52+
'inline_backend_fmt', # deprecated
5553
]
5654

5755
logger = logging.getLogger('matplotlib.mathtext')
@@ -1636,8 +1634,6 @@ def _validate_fontsize_None(s):
16361634
cmap.N = lut
16371635

16381636
# Deprecated
1639-
inline_backend_fmt, rc_configurator = warnings._rename_objs(
1640-
'0.6',
1641-
inline_backend_fmt=config_inline_backend,
1642-
rc_configurator=RcConfigurator,
1637+
inline_backend_fmt = warnings._rename_objs(
1638+
'0.6', inline_backend_fmt=config_inline_backend
16431639
)

proplot/ui.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
'isinteractive',
2727
'show',
2828
'switch_backend',
29-
# Deprecated
30-
'subplot_grid',
3129
]
3230

3331
docstring.snippets['pyplot.statement'] = """
@@ -805,10 +803,3 @@ def shape(self):
805803
incorrect. In such cases, 1d indexing should always be used.
806804
"""
807805
return self._shape
808-
809-
810-
# Deprecations
811-
subplot_grid = warnings._rename_objs(
812-
'0.6',
813-
subplot_grid=SubplotsContainer,
814-
)

0 commit comments

Comments
 (0)