docstr: Connect two bboxes with a straight line.
  
  Parameters
  ----------
  bbox1, bbox2 : `~matplotlib.transforms.Bbox`
      Bounding boxes to connect.
  
  loc1, loc2 : {1, 2, 3, 4}
      Corner of *bbox1* and *bbox2* to draw the line. Valid values are::
  
          'upper right'  : 1,
          'upper left'   : 2,
          'lower left'   : 3,
          'lower right'  : 4
  
      *loc2* is optional and defaults to *loc1*.
  
  **kwargs
      Patch properties for the line drawn. Valid arguments include:
  
      %(Patch:kwdoc)s
docstr_tok: ["Connect","two","bboxes","with","a","straight","line",".","Parameters","--","--","--","--","--","bbox1",",","bbox2",":","`","~matplotlib.transforms.Bbox","`","Bounding","boxes","to","connect",".","loc1",",","loc2",":","{","1",",","2",",","3",",","4","}","Corner","of","*","bbox1","*","and","*","bbox2","*","to","draw","the","line",".","Valid","values","are",":",":","'upper","right","'",":","1",",","'upper","left","'",":","2",",","'lower","left","'",":","3",",","'lower","right","'",":","4","*","loc2","*","is","optional","and","defaults","to","*","loc1","*",".","*","*","kwargs","Patch","properties","for","the","line","drawn",".","Valid","arguments","include",":","%","(","Patch",":","kwdoc",")","s"]
code: def __init__(self, bbox1, bbox2, loc1, loc2=None, **kwargs):
      """
      Connect two bboxes with a straight line.
  
      Parameters
      ----------
      bbox1, bbox2 : `~matplotlib.transforms.Bbox`
          Bounding boxes to connect.
  
      loc1, loc2 : {1, 2, 3, 4}
          Corner of *bbox1* and *bbox2* to draw the line. Valid values are::
  
              'upper right'  : 1,
              'upper left'   : 2,
              'lower left'   : 3,
              'lower right'  : 4
  
          *loc2* is optional and defaults to *loc1*.
  
      **kwargs
          Patch properties for the line drawn. Valid arguments include:
  
          %(Patch:kwdoc)s
      """
      if "transform" in kwargs:
          raise ValueError("transform should not be set")
  
      kwargs["transform"] = IdentityTransform()
      kwargs.setdefault(
          "fill",
          bool({"fc", "facecolor", "color"}.intersection(kwargs)),
      )
      super().__init__(**kwargs)
      self.bbox1 = bbox1
      self.bbox2 = bbox2
      self.loc1 = loc1
      self.loc2 = loc2
  
imports: from matplotlib import _api, _docstring
  from matplotlib.offsetbox import AnchoredOffsetbox
  from matplotlib.patches import Patch, Rectangle
  from matplotlib.path import Path
  from matplotlib.transforms import Bbox, BboxTransformTo
  from matplotlib.transforms import IdentityTransform, TransformedBbox
  from .None import axes_size
  from .parasite_axes import HostAxes
label_desc: Use image node_id 3 to create a new BboxConnector object from inherited base classes: Patch with example: obj = BboxConnector(bbox1, bbox2, loc1, loc2)