@@ -319,8 +319,42 @@ def get_path(self):
319319 get_path .__doc__ = Patch .get_path .__doc__
320320
321321
322+ @docstring .dedent_interpd
322323class BboxConnectorPatch (BboxConnector ):
324+ """
325+ Connect two bboxes with a quadrilateral.
323326
327+ The quadrilateral is specified by two lines that start and end at corners
328+ of the bboxes. The four sides of the quadrilateral are defined by the two
329+ lines given, the line between the two corners specified in *bbox1* and the
330+ line between the two corners specified in *bbox2*.
331+
332+ Parameters
333+ ----------
334+ bbox1, bbox2 : `matplotlib.transforms.Bbox`
335+ Bounding boxes to connect.
336+
337+ loc1a, loc2a : {1, 2, 3, 4}
338+ Corners of *bbox1* and *bbox2* to draw the first line.
339+ Valid values are::
340+
341+ 'upper right' : 1,
342+ 'upper left' : 2,
343+ 'lower left' : 3,
344+ 'lower right' : 4
345+
346+ loc1b, loc2b : {1, 2, 3, 4}
347+ Corners of *bbox1* and *bbox2* to draw the second line.
348+ Valid values are::
349+
350+ 'upper right' : 1,
351+ 'upper left' : 2,
352+ 'lower left' : 3,
353+ 'lower right' : 4
354+
355+ The kwargs are Patch properties for the line drawn:
356+ %(Patch)s
357+ """
324358 def __init__ (self , bbox1 , bbox2 , loc1a , loc2a , loc1b , loc2b , ** kwargs ):
325359 if "transform" in kwargs :
326360 raise ValueError ("transform should not be set" )
@@ -336,6 +370,7 @@ def get_path(self):
336370 list (path2 .vertices ) +
337371 [path1 .vertices [0 ]])
338372 return Path (path_merged )
373+ get_path .__doc__ = BboxConnector .get_path .__doc__
339374
340375
341376def _add_inset_axes (parent_axes , inset_axes ):
0 commit comments