File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525import warnings
2626import re
2727
28- from matplotlib .cbook import mplDeprecation , ls_mapper
28+ from matplotlib .cbook import mplDeprecation , deprecated , ls_mapper
2929from matplotlib .fontconfig_pattern import parse_fontconfig_pattern
3030from matplotlib .colors import is_color_like
3131
@@ -530,11 +530,22 @@ def validate_ps_distiller(s):
530530 'top' , 'none' ])
531531validate_fillstylelist = _listify_validator (validate_fillstyle )
532532
533- validate_negative_linestyle = ValidateInStrings ('negative_linestyle' ,
534- ['solid' , 'dashed' ],
535- ignorecase = True )
533+ _validate_negative_linestyle = ValidateInStrings ('negative_linestyle' ,
534+ ['solid' , 'dashed' ],
535+ ignorecase = True )
536536
537537
538+ @deprecated ('3.0.0?' , pending = True ,
539+ addendum = (" See 'validate_negative_linestyle_legacy' " +
540+ "deprecation warning for more information." ))
541+ def validate_negative_linestyle (s ):
542+ _validate_negative_linestyle (s )
543+
544+
545+ @deprecated ('3.0.0?' , pending = True ,
546+ addendum = (" The 'contour.negative_linestyle' rcParam now " +
547+ "follows the same validation as the other rcParams " +
548+ "that are related to line style." ))
538549def validate_negative_linestyle_legacy (s ):
539550 try :
540551 res = validate_negative_linestyle (s )
You can’t perform that action at this time.
0 commit comments