|
5 | 5 | fig.suptitle('bold figure suptitle', fontsize=14, fontweight='bold')
|
6 | 6 |
|
7 | 7 | ax = fig.add_subplot(111)
|
8 |
| - |
| 8 | +fig.subplots_adjust(top=0.85) |
9 | 9 | ax.set_title('axes title')
|
10 | 10 |
|
11 | 11 | ax.set_xlabel('xlabel')
|
12 | 12 | ax.set_ylabel('ylabel')
|
13 | 13 |
|
14 |
| -ax.text(5, 8, 'boxed italics text in data coords', style='italic', |
| 14 | +ax.text(3, 8, 'boxed italics text in data coords', style='italic', |
15 | 15 | bbox={'facecolor':'red', 'alpha':0.5, 'pad':10})
|
16 | 16 |
|
17 |
| -ax.text(2, 6, r'an equation: $E=mc^2$', fontsize=20) |
| 17 | +ax.text(2, 6, r'an equation: $E=mc^2$', fontsize=15) |
18 | 18 |
|
19 |
| -ax.text(4, 3, unicode('unicode: Institut f\374r Festk\366rperphysik', 'latin-1')) |
| 19 | +ax.text(3, 2, unicode('unicode: Institut f\374r Festk\366rperphysik', 'latin-1')) |
20 | 20 |
|
21 | 21 | ax.text(0.95, 0.01, 'colored text in axes coords',
|
22 | 22 | verticalalignment='bottom', horizontalalignment='right',
|
23 | 23 | transform=ax.transAxes,
|
24 |
| - color='green', fontsize=20) |
| 24 | + color='green', fontsize=15) |
25 | 25 |
|
26 | 26 |
|
27 | 27 | ax.plot([2], [1], 'o')
|
|
0 commit comments