8000 modify tests for limits · matplotlib/matplotlib@77d9fa4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 77d9fa4

Browse files
committed
modify tests for limits
1 parent fec64ef commit 77d9fa4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,12 +382,14 @@ def test_arrow_empty():
382382
# Create an empty FancyArrow
383383
ax.arrow(0, 0, 0, 0, head_length=0)
384384

385+
385386
def test_arrow_in_view():
386387
fig, ax = plt.subplots()
387388
ax.arrow(1, 1, 1, 1)
388-
assert ax.get_xlim() == (0, 0)
389+
assert ax.get_xlim() == (0.8, 0.2)
389390
assert ax.get_ylim() == (5, 5)
390391

392+
391393
def test_annotate_default_arrow():
392394
# Check that we can make an annotation arrow with only default properties.
393395
fig, ax = plt.subplots()

0 commit comments

Comments
 (0)
0