We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0eed0e commit b520f86Copy full SHA for b520f86
1 file changed
lib/matplotlib/tests/test_axes.py
@@ -9900,3 +9900,14 @@ def test_pie_all_zeros():
9900
fig, ax = plt.subplots()
9901
with pytest.raises(ValueError, match="All wedge sizes are zero"):
9902
ax.pie([0, 0], labels=["A", "B"])
9903
+
9904
9905
+def test_set_axes_with_none_limits():
9906
+ fig, ax = plt.subplots()
9907
+ xlim_before = ax.get_xlim()
9908
+ ylim_before = ax.get_ylim()
9909
9910
+ ax.set(xlim=None, ylim=None)
9911
9912
+ assert ax.get_xlim() == xlim_before
9913
+ assert ax.get_ylim() == ylim_before
0 commit comments