@@ -3564,6 +3564,7 @@ def __str__(self):
35643564 return s % (self ._x , self ._y , self ._width , self ._height )
35653565
35663566 @docstring .dedent_interpd
3567+ @cbook ._delete_parameter ("3.4" , "bbox_transmuter" , alternative = "boxstyle" )
35673568 def __init__ (self , xy , width , height ,
35683569 boxstyle = "round" , bbox_transmuter = None ,
35693570 mutation_scale = 1 , mutation_aspect = 1 ,
@@ -3616,6 +3617,10 @@ def __init__(self, xy, width, height,
36163617 self ._height = height
36173618
36183619 if boxstyle == "custom" :
3620+ cbook ._warn_deprecated (
3621+ "3.4" , message = "Support for boxstyle='custom' is deprecated "
3622+ "since %(since)s and will be removed %(removal)s; directly "
3623+ "pass a boxstyle instance as the boxstyle parameter instead." )
36193624 if bbox_transmuter is None :
36203625 raise ValueError ("bbox_transmuter argument is needed with "
36213626 "custom boxstyle" )
@@ -3641,10 +3646,12 @@ def set_boxstyle(self, boxstyle=None, **kwargs):
36413646
36423647 Parameters
36433648 ----------
3644- boxstyle : str
3645- The name of the box style. Optionally, followed by a comma and a
3646- comma-separated list of attributes. The attributes may
3647- alternatively be passed separately as keyword arguments.
3649+ boxstyle : str or `matplotlib.patches.BoxStyle`
3650+ The style of the fancy box. This can either be a `.BoxStyle`
3651+ instance or a string of the style name and optionally comma
3652+ seprarated attributes (e.g. "Round, pad=0.2"). This string is
3653+ passed to `.BoxStyle` to construct a `.BoxStyle` object. See
3654+ there for a full documentation.
36483655
36493656 The following box styles are available:
36503657
0 commit comments