Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5ccb7de

Browse filesBrowse files
committed
Add fallback test for Agg backend
1 parent 86878c8 commit 5ccb7de
Copy full SHA for 5ccb7de

File tree

Expand file treeCollapse file tree

2 files changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-0
lines changed
Loading

‎lib/matplotlib/tests/test_agg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_agg.py
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,11 @@ def test_draw_path_collection_error_handling():
251251
ax.scatter([1], [1]).set_paths(path.Path([(0, 1), (2, 3)]))
252252
with pytest.raises(TypeError):
253253
fig.canvas.draw()
254+
255+
256+
@image_comparison(["font_fallback.png"])
257+
def test_font_fallback():
258+
plt.rc('font', family=['DejaVu Sans', 'WenQuanYi Zen Hei'], size=15)
259+
260+
fig, ax = plt.subplots()
261+
ax.text(0.25, 0.475, "There are 多个汉字 in between!")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.