Bases: FancyArrowPatch
A patch that connects two points (possibly in different Axes).
Connect point xyA in coordsA with point xyB in coordsB.
Valid keys are
coordsA and coordsB are strings that indicate the coordinates of xyA and xyB.
Alternatively they can be set to any valid Transform
.
Note that 'subfigure pixels' and 'figure pixels' are the same for the parent figure, so users who want code that is usable in a subfigure can use 'subfigure pixels'.
Note
Using ConnectionPatch
across two Axes
instances is not directly compatible with constrained layout. Add the artist directly to the Figure
instead of adding it to a specific Axes, or exclude it from the layout using con.set_in_layout(False)
.
fig, ax = plt.subplots(1, 2, constrained_layout=True) con = ConnectionPatch(..., axesA=ax[0], axesB=ax[1]) fig.add_artist(con)
Draw the Artist (and its children) using the given renderer.
This has no effect if the artist is not visible (Artist.get_visible
returns False).
RendererBase
subclass.
Notes
This method is overridden in the Artist subclasses.
Return the clipping behavior.
See set_annotation_clip
for the meaning of the return value.
Set multiple properties at once.
Supported properties are
Set the annotation's clipping behavior.
True: The annotation will be clipped when self.xy
is outside the Axes.
False: The annotation will always be drawn.
None: The annotation will be clipped when self.xy
is outside the Axes and self.xycoords == "data"
.
matplotlib.patches.ConnectionPatch
#
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4