Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7549f27

Browse files
timhoffmMeeseeksDev[bot]
authored andcommitted
Backport PR #13611: Fix text position in Fancytextbox demo
1 parent f4c66d5 commit 7549f27

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/text_labels_and_annotations/fancytextbox_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
"""
77
import matplotlib.pyplot as plt
88

9-
plt.text(0.6, 0.5, "test", size=50, rotation=30.,
9+
plt.text(0.6, 0.7, "eggs", size=50, rotation=30.,
1010
ha="center", va="center",
1111
bbox=dict(boxstyle="round",
1212
ec=(1., 0.5, 0.5),
1313
fc=(1., 0.8, 0.8),
1414
)
1515
)
1616

17-
plt.text(0.5, 0.4, "test", size=50, rotation=-30.,
17+
plt.text(0.55, 0.6, "spam", size=50, rotation=-25.,
1818
ha="right", va="top",
1919
bbox=dict(boxstyle="square",
2020
ec=(1., 0.5, 0.5),

0 commit comments

Comments
 (0)