@@ -321,8 +321,8 @@ def __init__(self, transform, size, label, loc,
321
321
--------
322
322
>>> import matplotlib.pyplot as plt
323
323
>>> import numpy as np
324
- >>> from mpl_toolkits.axes_grid1.anchored_artists import \
325
- AnchoredSizeBar
324
+ >>> from mpl_toolkits.axes_grid1.anchored_artists import (
325
+ ... AnchoredSizeBar)
326
326
>>> fig, ax = plt.subplots()
327
327
>>> ax.imshow(np.random.random((10,10)))
328
328
>>> bar = AnchoredSizeBar(ax.transData, 3, '3 data units', 4)
@@ -333,10 +333,10 @@ def __init__(self, transform, size, label, loc,
333
333
334
334
>>> import matplotlib.font_manager as fm
335
335
>>> fontprops = fm.FontProperties(size=14, family='monospace')
336
- >>> bar = AnchoredSizeBar(ax.transData, 3, '3 units', 4, pad=0.5, \
337
- sep=5, borderpad=0.5, frameon=False, \
338
- size_vertical=0.5, color='white', \
339
- fontproperties=fontprops)
336
+ >>> bar = AnchoredSizeBar(ax.transData, 3, '3 units', 4, pad=0.5,
337
+ ... sep=5, borderpad=0.5, frameon=False,
338
+ ... size_vertical=0.5, color='white',
339
+ ... fontproperties=fontprops)
340
340
"""
341
341
if fill_bar is None :
342
342
fill_bar = size_vertical > 0
@@ -519,9 +519,11 @@ def __init__(self, transform, label_x, label_y, length=0.15,
519
519
>>> import matplotlib.font_manager as fm
520
520
>>> fontprops = fm.FontProperties(family='monospace')
521
521
>>> arrows = AnchoredDirectionArrows(ax.transAxes, 'East', 'South',
522
- ... loc='lower left', color='k', aspect_ratio=-1, sep_x=0.02,
523
- ... sep_y=-0.01, text_props={'ec':'w', 'fc':'k'},
524
- ... fontproperties=fontprops)
522
+ ... loc='lower left', color='k',
523
+ ... aspect_ratio=-1, sep_x=0.02,
524
+ ... sep_y=-0.01,
525
+ ... text_props={'ec':'w', 'fc':'k'},
526
+ ... fontproperties=fontprops)
525
527
"""
526
528
if arrow_props is None :
527
529
arrow_props = {}
0 commit comments