Skip to content

Commit a0f8fdc

Browse files
kolibril13timhoffm
andauthored
Update examples/text_labels_and_annotations/font_family_rc.py
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent ccd3016 commit a0f8fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/text_labels_and_annotations/font_family_rc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
def print_text(text):
3737
fig, ax = plt.subplots(figsize=(6, 1), facecolor="#eefade")
38-
ax.text(0.01, 0.2, text, size=40)
38+
ax.text(0.5, 0.5, text, ha='center', va='center', size=40)
3939
ax.axis("off")
4040
plt.show()
4141

0 commit comments

Comments
 (0)