@@ -3943,27 +3943,28 @@ def __init__(self, posA=None, posB=None,
3943
3943
dpi_cor = 1 ,
3944
3944
** kwargs ):
3945
3945
"""
3946
- If *posA* and *posB* are given, a path connecting two points is
3947
- created according to *connectionstyle*. The path will be
3948
- clipped with *patchA* and *patchB* and further shrunken by
3949
- *shrinkA* and *shrinkB*. An arrow is drawn along this
3950
- resulting path using the *arrowstyle* parameter.
3946
+ There are two ways for defining an arrow:
3951
3947
3952
- Alternatively if *path* is provided, an arrow is drawn along this path
3953
- and *patchA*, *patchB*, *shrinkA*, and *shrinkB* are ignored.
3948
+ - If *posA* and *posB* are given, a path connecting two points is
3949
+ created according to *connectionstyle*. The path will be
3950
+ clipped with *patchA* and *patchB* and further shrunken by
3951
+ *shrinkA* and *shrinkB*. An arrow is drawn along this
3952
+ resulting path using the *arrowstyle* parameter.
3953
+
3954
+ - Alternatively if *path* is provided, an arrow is drawn along this
3955
+ path and *patchA*, *patchB*, *shrinkA*, and *shrinkB* are ignored.
3954
3956
3955
3957
Parameters
3956
3958
----------
3957
3959
3958
- posA, posB : None, tuple , optional (default: None)
3960
+ posA, posB : (float, float) , optional (default: None)
3959
3961
(x,y) coordinates of arrow tail and arrow head respectively.
3960
3962
3961
- path : None, Path (default: None)
3962
- :class:`matplotlib.path.Path` instance. If provided, an arrow is
3963
- drawn along this path and *patchA*, *patchB*, *shrinkA*, and
3964
- *shrinkB* are ignored.
3963
+ path : `~matplotlib.path.Path`, optional (default: None)
3964
+ If provided, an arrow is drawn along this path and *patchA*,
3965
+ *patchB*, *shrinkA*, and *shrinkB* are ignored.
3965
3966
3966
- arrowstyle : str or ArrowStyle, optional (default: 'simple')
3967
+ arrowstyle : str or `. ArrowStyle` , optional (default: 'simple')
3967
3968
Describes how the fancy arrow will be
3968
3969
drawn. It can be string of the available arrowstyle names,
3969
3970
with optional comma-separated attributes, or an
@@ -3974,10 +3975,10 @@ def __init__(self, posA=None, posB=None,
3974
3975
%(AvailableArrowstyles)s
3975
3976
3976
3977
arrow_transmuter
3977
- Ignored
3978
+ Ignored.
3978
3979
3979
- connectionstyle : str, ConnectionStyle, or None, optional
3980
- (default: 'arc3')
3980
+ connectionstyle : str or `. ConnectionStyle` or None, optional \
3981
+ (default: 'arc3')
3981
3982
Describes how *posA* and *posB* are connected. It can be an
3982
3983
instance of the :class:`ConnectionStyle` class or a string of the
3983
3984
connectionstyle name, with optional comma-separated attributes. The
@@ -3986,35 +3987,37 @@ def __init__(self, posA=None, posB=None,
3986
3987
%(AvailableConnectorstyles)s
3987
3988
3988
3989
connector
3989
- Ignored
3990
+ Ignored.
3990
3991
3991
- patchA, patchB : None, Patch, optional (default: None)
3992
+ patchA, patchB : `. Patch` , optional (default: None)
3992
3993
Head and tail patch respectively. :class:`matplotlib.patch.Patch`
3993
3994
instance.
3994
3995
3995
- shrinkA, shrinkB : scalar , optional (default: 2)
3996
- Shrinking factor of the tail and head of the arrow respectively
3996
+ shrinkA, shrinkB : float , optional (default: 2)
3997
+ Shrinking factor of the tail and head of the arrow respectively.
3997
3998
3998
- mutation_scale : scalar , optional (default: 1)
3999
+ mutation_scale : float , optional (default: 1)
3999
4000
Value with which attributes of *arrowstyle* (e.g., *head_length*)
4000
4001
will be scaled.
4001
4002
4002
- mutation_aspect : None, scalar , optional (default: None)
4003
+ mutation_aspect : None or float , optional (default: None)
4003
4004
The height of the rectangle will be squeezed by this value before
4004
4005
the mutation and the mutated box will be stretched by the inverse
4005
4006
of it.
4006
4007
4007
- dpi_cor : scalar , optional (default: 1)
4008
+ dpi_cor : float , optional (default: 1)
4008
4009
dpi_cor is currently used for linewidth-related things and shrink
4009
4010
factor. Mutation scale is affected by this.
4010
4011
4011
- Notes
4012
- -----
4013
- Valid kwargs are:
4012
+ Other Parameters
4013
+ ----------------
4014
+ **kwargs : `.Patch` properties, optional
4015
+ Here is a list of available `.Patch` properties:
4016
+
4014
4017
%(Patch)s
4015
4018
4016
- In contrast to other patches, the default ``capstyle`` and
4017
- ``joinstyle`` for `FancyArrowPatch` are set to ``"round"``.
4019
+ In contrast to other patches, the default ``capstyle`` and
4020
+ ``joinstyle`` for `FancyArrowPatch` are set to ``"round"``.
4018
4021
"""
4019
4022
if arrow_transmuter is not None :
4020
4023
cbook .warn_deprecated (
0 commit comments