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 0089509

Browse filesBrowse files
committed
TST: test repr for category x
1 parent 88b68a6 commit 0089509
Copy full SHA for 0089509

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+7
-0
lines changed

‎lib/matplotlib/tests/test_text.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_text.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,3 +496,10 @@ def test_text_as_text_opacity():
496496
plt.text(0.25, 0.5, '50% using `alpha`', alpha=0.5)
497497
plt.text(0.25, 0.75, '50% using `alpha` and 100% `color`', alpha=0.5,
498498
color=(0, 0, 0, 1))
499+
500+
501+
def test_text_repr():
502+
# smoketest to make sure text repr doesn't error for category
503+
plt.plot(['A', 'B'], [1, 2])
504+
txt = plt.text(['A'], 0.5, 'Boo')
505+
print(txt)

0 commit comments

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