Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 625283f commit c0a0873Copy full SHA for c0a0873
1 file changed
lib/matplotlib/tests/test_scale.py
@@ -133,9 +133,15 @@ def test_invalid_log_lims():
133
with pytest.warns(UserWarning):
134
ax.set_xlim(left=0)
135
assert ax.get_xlim() == original_xlim
136
+ with pytest.warns(UserWarning):
137
+ ax.set_xlim(right=-1)
138
+ assert ax.get_xlim() == original_xlim
139
140
ax.set_yscale('log')
141
original_ylim = ax.get_ylim()
142
143
ax.set_ylim(bottom=0)
144
assert ax.get_ylim() == original_ylim
145
146
+ ax.set_ylim(top=-1)
147
+ assert ax.get_ylim() == original_ylim
0 commit comments