A patch that connects two points (possibly in different Axes).
| 4661 | |
| 4662 | |
| 4663 | class ConnectionPatch(FancyArrowPatch): |
| 4664 | """A patch that connects two points (possibly in different Axes).""" |
| 4665 | |
| 4666 | def __str__(self): |
| 4667 | return "ConnectionPatch((%g, %g), (%g, %g))" % \ |
| 4668 | (self.xy1[0], self.xy1[1], self.xy2[0], self.xy2[1]) |
| 4669 | |
| 4670 | @_docstring.interpd |
| 4671 | def __init__(self, xyA, xyB, coordsA, coordsB=None, *, |
| 4672 | axesA=None, axesB=None, |
| 4673 | arrowstyle="-", |
| 4674 | connectionstyle="arc3", |
| 4675 | patchA=None, |
| 4676 | patchB=None, |
| 4677 | shrinkA=0., |
| 4678 | shrinkB=0., |
| 4679 | mutation_scale=10., |
| 4680 | mutation_aspect=None, |
| 4681 | clip_on=False, |
| 4682 | **kwargs): |
| 4683 | """ |
| 4684 | Connect point *xyA* in *coordsA* with point *xyB* in *coordsB*. |
| 4685 | |
| 4686 | Valid keys are |
| 4687 | |
| 4688 | =============== ====================================================== |
| 4689 | Key Description |
| 4690 | =============== ====================================================== |
| 4691 | arrowstyle the arrow style |
| 4692 | connectionstyle the connection style |
| 4693 | relpos default is (0.5, 0.5) |
| 4694 | patchA default is bounding box of the text |
| 4695 | patchB default is None |
| 4696 | shrinkA default is 2 points |
| 4697 | shrinkB default is 2 points |
| 4698 | mutation_scale default is text size (in points) |
| 4699 | mutation_aspect default is 1. |
| 4700 | ? any key for `matplotlib.patches.PathPatch` |
| 4701 | =============== ====================================================== |
| 4702 | |
| 4703 | *coordsA* and *coordsB* are strings that indicate the |
| 4704 | coordinates of *xyA* and *xyB*. |
| 4705 | |
| 4706 | ==================== ================================================== |
| 4707 | Property Description |
| 4708 | ==================== ================================================== |
| 4709 | 'figure points' points from the lower left corner of the figure |
| 4710 | 'figure pixels' pixels from the lower left corner of the figure |
| 4711 | 'figure fraction' 0, 0 is lower left of figure and 1, 1 is upper |
| 4712 | right |
| 4713 | 'subfigure points' points from the lower left corner of the subfigure |
| 4714 | 'subfigure pixels' pixels from the lower left corner of the subfigure |
| 4715 | 'subfigure fraction' fraction of the subfigure, 0, 0 is lower left. |
| 4716 | 'axes points' points from lower left corner of the Axes |
| 4717 | 'axes pixels' pixels from lower left corner of the Axes |
| 4718 | 'axes fraction' 0, 0 is lower left of Axes and 1, 1 is upper right |
| 4719 | 'data' use the coordinate system of the object being |
| 4720 | annotated (default) |
no outgoing calls
no test coverage detected
searching dependent graphs…