matplotlib.patches.ConnectionStyle¶ConnectionStyle is a container class which defines
several connectionstyle classes, which is used to create a path
between two points. These are mainly used with
FancyArrowPatch.
A connectionstyle object can be either created as:
ConnectionStyle.Arc3(rad=0.2)
or:
ConnectionStyle("Arc3", rad=0.2)
or:
ConnectionStyle("Arc3, rad=0.2")
The following classes are defined
Class Name Attrs Angle angleangleA=90,angleB=0,rad=0.0 Angle3 angle3angleA=90,angleB=0 Arc arcangleA=0,angleB=0,armA=None,armB=None,rad=0.0 Arc3 arc3rad=0.0 Bar bararmA=0.0,armB=0.0,fraction=0.3,angle=None
An instance of any connection style class is an callable object, whose call signature is:
__call__(self, posA, posB,
patchA=None, patchB=None,
shrinkA=2., shrinkB=2.)
and it returns a Path instance. posA and posB are
tuples of x,y coordinates of the two points to be
connected. patchA (or patchB) is given, the returned path is
clipped so that it start (or end) from the boundary of the
patch. The path is further shrunk by shrinkA (or shrinkB)
which is given in points.
return the instance of the subclass with the given style name.