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 59abb91 commit d1e294cCopy full SHA for d1e294c
lib/matplotlib/tests/test_axes.py
@@ -4275,6 +4275,19 @@ def _helper_y(ax):
4275
assert assert_array_equal(ax_lst[0][1].get_xlim(), orig_xlim)
4276
4277
4278
+@cleanup
4279
+def test_adjust_numtick_aspect():
4280
+ fig, ax = plt.subplots()
4281
+ ax.yaxis.get_major_locator().set_params(nbins='auto')
4282
+ ax.set_xlim(0, 1000)
4283
+ ax.set_aspect('equal')
4284
+ fig.canvas.draw()
4285
+ assert len(ax.yaxis.get_major_locator()()) == 2
4286
+ ax.set_ylim(0, 1000)
4287
4288
+ assert len(ax.yaxis.get_major_locator()()) > 2
4289
+
4290
4291
@image_comparison(baseline_images=["auto_numticks"], style='default',
4292
extensions=['png'])
4293
def test_auto_numticks():
0 commit comments