8000 add api change note; change to tests · matplotlib/matplotlib@b9908c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit b9908c6

Browse files
committed
add api change note; change to tests
1 parent 5ade735 commit b9908c6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Autoscale for arrow
2+
```````````````````````````````````
3+
Calling ax.arrow() will now autoscale the axes.

lib/matplotlib/tests/test_axes.py

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

385-
@image_comparison(baseline_images=['arrow_in_view'],
386-
extensions=['png'], remove_text=True)
387385
def test_arrow_in_view():
388386
fig, ax = plt.subplots()
389387
ax.arrow(1, 1, 1, 1)
388+
assert ax.get_xlim() == (0, 0)
389+
assert ax.get_ylim() == (5, 5)
390390

391391
def test_annotate_default_arrow():
392392
# Check that we can make an annotation arrow with only default properties.

0 commit comments

Comments
 (0)
0