@@ -476,8 +476,8 @@ def __init__(self, transform, label_x, label_y, length=0.15,
476
476
Defaults to 2.
477
477
478
478
text_props, arrow_props : dict
479
- Properties of the text and arrows, passed to :class:
480
- `matplotlib.text.TextPath` and
479
+ Properties of the text and arrows, passed to
480
+ :class: `matplotlib.text.TextPath` and
481
481
`matplotlib.patches.FancyArrowPatch`
482
482
483
483
**kwargs :
@@ -509,11 +509,10 @@ def __init__(self, transform, label_x, label_y, length=0.15,
509
509
>>> import matplotlib.pyplot as plt
510
510
>>> import numpy as np
511
511
>>> from mpl_toolkits.axes_grid1.anchored_artists import \
512
- AnchoredDirectionArrows
512
+ ... AnchoredDirectionArrows
513
513
>>> fig, ax = plt.subplots()
514
514
>>> ax.imshow(np.random.random((10,10)))
515
- >>> arrows = AnchoredDirectionArrows(ax.transAxes, '111', \
516
- r'11$\overline{2}$')
515
+ >>> arrows = AnchoredDirectionArrows(ax.transAxes, '111', '110')
517
516
>>> ax.add_artist(arrows)
518
517
>>> fig.show()
519
518
@@ -522,9 +521,10 @@ def __init__(self, transform, label_x, label_y, length=0.15,
522
521
523
522
>>> import matplotlib.font_manager as fm
524
523
>>> fontprops = fm.FontProperties(family='monospace')
525
- >>> arrows = AnchoredDirectionArrows(ax.transAxes,'East','South', \
526
- loc='lower left', color='k', aspect_ratio=-1, sep_x=0.02,sep_y=-0.01, \
527
- text_props={'ec':'w','fc':'k'}, fontproperties=fontprops)
524
+ >>> arrows = AnchoredDirectionArrows(ax.transAxes, 'East', 'South',
525
+ ... loc='lower left', color='k', aspect_ratio=-1, sep_x=0.02,
526
+ ... sep_y=-0.01, text_props={'ec':'w', 'fc':'k'},
527
+ ... fontproperties=fontprops)
528
528
"""
529
529
if arrow_props is None :
530
530
arrow_props = {}
0 commit comments