1111"""
1212
1313from enum import Enum , auto
14- from matplotlib import cbook , docstring
14+ from matplotlib import docstring
1515
1616
1717class _AutoStringNameEnum (Enum ):
@@ -24,23 +24,6 @@ def __hash__(self):
2424 return str (self ).__hash__ ()
2525
2626
27- def _deprecate_case_insensitive_join_cap (s ):
28- s_low = s .lower ()
29- if s != s_low :
30- if s_low in ['miter' , 'round' , 'bevel' ]:
31- cbook .warn_deprecated (
32- "3.3" , message = "Case-insensitive capstyles are deprecated "
33- "since %(since)s and support for them will be removed "
34- "%(removal)s; please pass them in lowercase." )
35- elif s_low in ['butt' , 'round' , 'projecting' ]:
36- cbook .warn_deprecated (
37- "3.3" , message = "Case-insensitive joinstyles are deprecated "
38- "since %(since)s and support for them will be removed "
39- "%(removal)s; please pass them in lowercase." )
40- # Else, error out at the check_in_list stage.
41- return s_low
42-
43-
4427class JoinStyle (str , _AutoStringNameEnum ):
4528 """
4629 Define how the connection between two line segments is drawn.
@@ -100,10 +83,6 @@ class JoinStyle(str, _AutoStringNameEnum):
10083 round = auto ()
10184 bevel = auto ()
10285
103- def __init__ (self , s ):
104- s = _deprecate_case_insensitive_join_cap (s )
105- Enum .__init__ (self )
106-
10786 @staticmethod
10887 def demo ():
10988 """Demonstrate how each JoinStyle looks for various join angles."""
@@ -173,10 +152,6 @@ class CapStyle(str, _AutoStringNameEnum):
173152 projecting = 'projecting'
174153 round = 'round'
175154
176- def __init__ (self , s ):
177- s = _deprecate_case_insensitive_join_cap (s )
178- Enum .__init__ (self )
179-
180155 @staticmethod
181156 def demo ():
182157 """Demonstrate how each CapStyle looks for a thick line segment."""
0 commit comments