docstr: Connect two bboxes with a straight line.
  
  Parameters
  ----------
  bbox1, bbox2 : `matplotlib.transforms.Bbox`
      Bounding boxes to connect.
  
  loc1 : {1, 2, 3, 4}
      Corner of *bbox1* to draw the line. Valid values are::
  
          'upper right'  : 1,
          'upper left'   : 2,
          'lower left'   : 3,
          'lower right'  : 4
  
  loc2 : {1, 2, 3, 4}, optional
      Corner of *bbox2* to draw the line. If None, defaults to *loc1*.
      Valid values are::
  
          'upper right'  : 1,
          'upper left'   : 2,
          'lower left'   : 3,
          'lower right'  : 4
  
  **kwargs
      Patch properties for the line drawn. Valid arguments include:
      %(Patch)s
docstr_tok: ["Connect","two","bboxes","with","a","straight","line",".","Parameters","--","--","--","--","--","bbox1",",","bbox2",":","`","matplotlib.transforms.Bbox","`","Bounding","boxes","to","connect",".","loc1",":","{","1",",","2",",","3",",","4","}","Corner","of","*","bbox1","*","to","draw","the","line",".","Valid","values","are",":",":","'upper","right","'",":","1",",","'upper","left","'",":","2",",","'lower","left","'",":","3",",","'lower","right","'",":","4","loc2",":","{","1",",","2",",","3",",","4","}",",","optional","Corner","of","*","bbox2","*","to","draw","the","line",".","If","None",",","defaults","to","*","loc1","*",".","Valid","values","are",":",":","'upper","right","'",":","1",",","'upper","left","'",":","2",",","'lower","left","'",":","3",",","'lower","right","'",":","4","*","*","kwargs","Patch","properties","for","the","line","drawn",".","Valid","arguments","include",":","%","(","Patch",")","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 : {1, 2, 3, 4}
          Corner of *bbox1* to draw the line. Valid values are::
  
              'upper right'  : 1,
              'upper left'   : 2,
              'lower left'   : 3,
              'lower right'  : 4
  
      loc2 : {1, 2, 3, 4}, optional
          Corner of *bbox2* to draw the line. If None, defaults to *loc1*.
          Valid values are::
  
              'upper right'  : 1,
              'upper left'   : 2,
              'lower left'   : 3,
              'lower right'  : 4
  
      **kwargs
          Patch properties for the line drawn. Valid arguments include:
          %(Patch)s
      """
      if "transform" in kwargs:
          raise ValueError("transform should not be set")
  
      kwargs["transform"] = IdentityTransform()
      Patch.__init__(self, fill=False, **kwargs)
      self.bbox1 = bbox1
      self.bbox2 = bbox2
      self.loc1 = loc1
      self.loc2 = loc2
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import warnings
  from matplotlib import docstring
  import six
  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)