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

Skip to content

Commit 75afb36

Browse files
committed
TST: fix up axes-less Annotation
1 parent d112ce6 commit 75afb36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ def test_text_annotation_get_window_extent():
991991
renderer = RendererAgg(200, 200, 100)
992992

993993
# Only text annotation
994-
annotation = Annotation('test', xy=(0, 0))
994+
annotation = Annotation('test', xy=(0, 0), xycoords='figure pixels')
995995
annotation.set_figure(figure)
996996

997997
text = Text(text='test', x=0, y=0)

0 commit comments

Comments
 (0)