8000 Remove deprecated rcParams entries and functions. · matplotlib/matplotlib@2ee7401 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2ee7401

Browse files
committed
Remove deprecated rcParams entries and functions.
1 parent eb6e422 commit 2ee7401

File tree

3 files changed

+9
-32
lines changed

3 files changed

+9
-32
lines changed

doc/api/api_changes/code_removal.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,15 @@ favor of the synonym ``"auto"``.
3636
The ``shading`` kwarg to ``pcolor`` has been removed. Set ``edgecolors``
3737
appropriately instead.
3838

39+
3940
Removed internal functions
4041
--------------------------
4142

4243
The ``matplotlib.backends.backend_ps.seq_allequal`` function has been removed.
4344
Use ``np.array_equal`` instead.
45+
46+
The deprecated ``matplotlib.rcsetup.validate_maskedarray``,
47+
``matplotlib.rcsetup.deprecate_savefig_extension`` and
48+
``matplotlib.rcsetup.validate_tkpythoninspect`` functions, and associated
49+
``savefig.extension`` and ``tk.pythoninspect`` rcparams entries have been
50+
removed.

lib/matplotlib/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -823,16 +823,14 @@ def gen_candidates():
823823
'tick.size': ('tick.major.size', lambda x: x, None),
824824
'svg.embed_char_paths': ('svg.fonttype',
825825
lambda x: "path" if x else "none", None),
826-
'savefig.extension': ('savefig.format', lambda x: x, None),
827826
'axes.color_cycle': ('axes.prop_cycle', lambda x: cycler('color', x),
828827
lambda x: [c.get('color', None) for c in x]),
829828
'svg.image_noscale': ('image.interpolation', None, None),
830829
}
831830

832-
_deprecated_ignore_map = {
833-
}
831+
_deprecated_ignore_map = {}
834832

835-
_obsolete_set = {'tk.pythoninspect', 'legend.isaxes'}
833+
_obsolete_set = {'legend.isaxes'}
836834

837835
# The following may use a value of None to suppress the warning.
838836
_deprecated_set = {'axes.hold'} # do NOT include in _all_deprecated

lib/matplotlib/rcsetup.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -279,18 +279,6 @@ def validate_toolbar(s):
279279
return validator(s)
280280

281281

282-
def validate_maskedarray(v):
283-
# 2008/12/12: start warning; later, remove all traces of maskedarray
284-
try:
285-
if v == 'obsolete':
286-
return v
287-
except ValueError:
288-
pass
289-
warnings.warn('rcParams key "maskedarray" is obsolete and has no effect;\n'
290-
' please delete it from your matplotlibrc file',
291-
mplDeprecation)
292-
293-
294282
_seq_err_msg = ('You must supply exactly {n} values, you provided {num} '
295283
'values: {s}')
296284

@@ -492,13 +480,6 @@ def validate_whiskers(s):
492480
"(float, float)]")
493481

494482

495-
def deprecate_savefig_extension(value):
496-
warnings.warn("savefig.extension is deprecated. Use savefig.format "
497-
"instead. Will be removed in 1.4.x",
498-
mplDeprecation)
499-
return value
500-
501-
502483
def update_savefig_format(value):
503484
# The old savefig.extension could also have a value of "auto", but
504485
# the new savefig.format does not. We need to fix this here.
@@ -576,12 +557,6 @@ def validate_corner_mask(s):
576557
return validate_bool(s)
577558

578559

579-
def validate_tkpythoninspect(s):
580-
# Introduced 2010/07/05
581-
warnings.warn("tk.pythoninspect is obsolete, and has no effect",
582-
mplDeprecation)
583-
return validate_bool(s)
584-
585560
validate_legend_loc = ValidateInStrings(
586561
'legend_loc',
587562
['best',
@@ -1330,8 +1305,6 @@ def _validate_linestyle(ls):
13301305
'savefig.orientation': ['portrait', validate_orientation], # edgecolor;
13311306
#white
13321307
'savefig.jpeg_quality': [95, validate_int],
1333-
# what to add to extensionless filenames
1334-
'savefig.extension': ['png', deprecate_savefig_extension],
13351308
# value checked by backend at runtime
13361309
'savefig.format': ['png', update_savefig_format],
13371310
# options are 'tight', or 'standard'. 'standard' validates to None.
@@ -1343,7 +1316,6 @@ def _validate_linestyle(ls):
13431316

13441317
# Maintain shell focus for TkAgg
13451318
'tk.window_focus': [False, validate_bool],
1346-
'tk.pythoninspect': [False, validate_tkpythoninspect], # obsolete
13471319

13481320
# Set the papersize/type
13491321
'ps.papersize': ['letter', validate_ps_papersize],

0 commit comments

Comments
 (0)
0