File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 25
25
import warnings
26
26
import re
27
27
28
- from matplotlib .cbook import mplDeprecation , ls_mapper
28
+ from matplotlib .cbook import mplDeprecation , deprecated , ls_mapper
29
29
from matplotlib .fontconfig_pattern import parse_fontconfig_pattern
30
30
from matplotlib .colors import is_color_like
31
31
@@ -530,11 +530,22 @@ def validate_ps_distiller(s):
530
530
'top' , 'none' ])
531
531
validate_fillstylelist = _listify_validator (validate_fillstyle )
532
532
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 )
536
536
537
537
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." ))
538
549
def validate_negative_linestyle_legacy (s ):
539
550
try :
540
551
res = validate_negative_linestyle (s )
You can’t perform that action at this time.
0 commit comments