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

Skip to content

Commit d683db1

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

File tree

2 files changed

+7
-28
lines changed

2 files changed

+7
-28
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/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