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 80f868a commit fe34ad2Copy full SHA for fe34ad2
1 file changed
lib/matplotlib/tests/test_axes.py
@@ -167,6 +167,16 @@ def test_autoscale_tiny_range():
167
ax[i].plot([0, 1], [1, 1 + y1])
168
169
170
+@cleanup
171
+def test_autoscale_tight():
172
+ fig, ax = plt.subplots(1, 1)
173
+ ax.plot([1, 2, 3, 4])
174
+ ax.autoscale(enable=True, axis='x', tight=False)
175
+ ax.autoscale(enable=True, axis='y', tight=True)
176
+ assert_allclose(ax.get_xlim(), (-0.15, 3.15))
177
+ assert_allclose(ax.get_ylim(), (1.0, 4.0))
178
+
179
180
@image_comparison(baseline_images=['offset_points'],
181
remove_text=True)
182
def test_basic_annotate():
0 commit comments