8000 FIX · matplotlib/matplotlib@13eb3ef · GitHub
[go: up one dir, main page]

Skip to content

Commit 13eb3ef

Browse files
committed
FIX
1 parent 85d1371 commit 13eb3ef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/text_labels_and_annotations/label_subplots.py

Lines changed: 2 additions & 3 deletions
Diff line number
Original file line numberDiff line change
@@ -20,7 +20,7 @@
2020
constrained_layout=True)
2121

2222
for label, ax in axs.items():
23-
# 10 points in and 5 points down:
23+
# label physical distance in and down:
2424
trans = mtransforms.ScaledTranslation(10/72, -5/72, fig.dpi_scale_trans)
2525
ax.text(0.0, 1.0, label, transform=ax.transAxes + trans,
2626
fontsize='medium', va='top', fontfamily='serif',
@@ -36,7 +36,7 @@
3636
constrained_layout=True)
3737

3838
for label, ax in axs.items():
39-
# 10 points in and 5 points down:
39+
# label physical distance to the left and up:
4040
trans = mtransforms.ScaledTranslation(-20/72, 7/72, fig.dpi_scale_trans)
4141
ax.text(0.0, 1.0, label, transform=ax.transAxes + trans,
4242
fontsize='medium', va='bottom', fontfamily='serif')
@@ -51,7 +51,6 @@
5151
constrained_layout=True)
5252

5353
for label, ax in axs.items():
54-
# 10 points in and 5 points down:
5554
ax.set_title('Normal Title', fontstyle='italic')
5655
ax.set_title(label, fontfamily='serif', loc='left', fontsize='medium')
5756

0 commit comments

Comments
 (0)
0