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

Skip to content

Commit 0a771cc

Browse files
committed
TST: fix TestMaxNLocator
1 parent c9a8f22 commit 0a771cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/tests/test_ticker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ class TestMaxNLocator(object):
2626

2727
@pytest.mark.parametrize('vmin, vmax, expected', basic_data)
2828
def test_basic(self, vmin, vmax, expected):
29-
loc = mticker.MaxNLocator(nbins=5)
29+
loc = mticker.MaxNLocator(nbins=5, trim_outside=False)
3030
assert_almost_equal(loc.tick_values(vmin, vmax), expected)
3131

3232
@pytest.mark.parametrize('vmin, vmax, steps, expected', integer_data)
3333
def test_integer(self, vmin, vmax, steps, expected):
34-
loc = mticker.MaxNLocator(nbins=5, integer=True, steps=steps)
34+
loc = mticker.MaxNLocator(nbins=5, integer=True, steps=steps,
35+
trim_outside=False)
3536
assert_almost_equal(loc.tick_values(vmin, vmax), expected)
3637

3738

0 commit comments

Comments
 (0)