@@ -1352,8 +1352,7 @@ def set_dash_joinstyle(self, s):
13521352 s : {'miter', 'round', 'bevel'}
13531353 For examples see :doc:`/gallery/lines_bars_and_markers/joinstyle`.
13541354 """
1355- s = mpl .rcsetup ._deprecate_case_insensitive_join_cap (s )
1356- cbook ._check_in_list (self .validJoin , s = s )
1355+ mpl .rcsetup .validate_joinstyle (s )
13571356 if self ._dashjoinstyle != s :
13581357 self .stale = True
13591358 self ._dashjoinstyle = s
@@ -1367,8 +1366,7 @@ def set_solid_joinstyle(self, s):
13671366 s : {'miter', 'round', 'bevel'}
13681367 For examples see :doc:`/gallery/lines_bars_and_markers/joinstyle`.
13691368 """
1370- s = mpl .rcsetup ._deprecate_case_insensitive_join_cap (s )
1371- cbook ._check_in_list (self .validJoin , s = s )
1369+ mpl .rcsetup .validate_joinstyle (s )
13721370 if self ._solidjoinstyle != s :
13731371 self .stale = True
13741372 self ._solidjoinstyle = s
@@ -1398,8 +1396,7 @@ def set_dash_capstyle(self, s):
13981396 s : {'butt', 'round', 'projecting'}
13991397 For examples see :doc:`/gallery/lines_bars_and_markers/joinstyle`.
14001398 """
1401- s = mpl .rcsetup ._deprecate_case_insensitive_join_cap (s )
1402- cbook ._check_in_list (self .validCap , s = s )
1399+ mpl .rcsetup .validate_capstyle (s )
14031400 if self ._dashcapstyle != s :
14041401 self .stale = True
14051402 self ._dashcapstyle = s
@@ -1413,8 +1410,7 @@ def set_solid_capstyle(self, s):
14131410 s : {'butt', 'round', 'projecting'}
14141411 For examples see :doc:`/gallery/lines_bars_and_markers/joinstyle`.
14151412 """
1416- s = mpl .rcsetup ._deprecate_case_insensitive_join_cap (s )
1417- cbook ._check_in_list (self .validCap , s = s )
1413+ mpl .rcsetup .validate_capstyle (s )
14181414 if self ._solidcapstyle != s :
14191415 self .stale = True
14201416 self ._solidcapstyle = s
0 commit comments