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

Skip to content

Commit e3e3960

Browse files
aalmasmarioscargus
authored and
alialmas
committed
Update lib/matplotlib/ticker.py
Co-authored-by: Oscar Gustafsson <[email protected]>
1 parent bee5660 commit e3e3960

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/tests/test_ticker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ def test_first_and_last_minorticks(self):
111111
Test that first and last minor tick appear as expected.
112112
"""
113113
# This test is related to issue #22331
114-
fig = plt.figure()
115-
ax = plt.gca()
114+
fig, ax = plt.subplots()
116115
ax.set_xlim(-1.9, 1.9)
117116
ax.xaxis.set_minor_locator(mticker.AutoMinorLocator())
118117
test_value = np.array([-1.9, -1.8, -1.7, -1.6, -1.4, -1.3, -1.2, -1.1,

0 commit comments

Comments
 (0)