Skip to content

Commit 88d04d0

Browse files
committed
AnchoredDirectionArrows: docstring, what's new
1 parent efcca59 commit 88d04d0

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Add ``AnchoredDirectionArrows`` feature to mpl_toolkits
2+
--------------------------------------------------------
3+
4+
A new mpl_toolkits class
5+
:class:`~mpl_toolkits.axes_grid1.anchored_artists.AnchoredDirectionArrows`
6+
draws a pair of orthogonal arrows to inidcate directions on a 2D plot. A
7+
minimal working example takes in the transformation object for the coordinate
8+
system (typically ax.transAxes), and arrow labels. There are several optional
9+
parameters that can be used to alter layout. For example, the arrow pairs can
10+
be rotated and the color can be changed. By default the labels and arrows have
11+
the same color, but the class may also pass arguments for costumizing arrow
12+
and text layout, these are passed to :class: `matplotlib.text.TextPath` and
13+
`matplotlib.patches.FancyArrowPatch`. Location, arrow lenght, width and head
14+
can be adjusted, the the direction arrows and labels can have a frame. Padding
15+
and separation parameters can be adjusted.

lib/mpl_toolkits/axes_grid1/anchored_artists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def __init__(self, transform, label_x, label_y, length=0.15,
393393
----------
394394
transform : `matplotlib.transforms.Transform`
395395
The transformation object for the coordinate system in use, i.e.,
396-
:attr:`matplotlib.axes.Axes.transData`.
396+
:attr:`matplotlib.axes.Axes.transAxes`.
397397
398398
label_x, label_y : string
399399
Label text for the x and y arrows

0 commit comments

Comments
 (0)