Skip to content

Commit 0b8df84

Browse files
committed
FIX: fix tests
1 parent e8624f7 commit 0b8df84

File tree

8 files changed

+1204
-1257
lines changed

8 files changed

+1204
-1257
lines changed
Binary file not shown.
Loading

lib/matplotlib/tests/baseline_images/test_text/text_alignment.svg

Lines changed: 348 additions & 420 deletions
Loading
Loading

lib/matplotlib/tests/test_text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def test_contains():
166166
xs, ys = np.meshgrid(xs, ys)
167167

168168
txt = plt.text(
169-
0.48, 0.52, 'hello world', ha='center', fontsize=30, rotation=30)
169+
0.5, 0.4, 'hello world', ha='center', fontsize=30, rotation=30)
170170
# uncomment to draw the text's bounding box
171171
# txt.set_bbox(dict(edgecolor='black', facecolor='none'))
172172

@@ -196,7 +196,7 @@ def test_titles():
196196
ax.set_yticks([])
197197

198198

199-
@image_comparison(baseline_images=['text_alignment'])
199+
@image_comparison(baseline_images=['text_alignment'], style='mpl20')
200200
def test_alignment():
201201
plt.figure()
202202
ax = plt.subplot(1, 1, 1)
Binary file not shown.
Loading

0 commit comments

Comments
 (0)