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

Skip to content

Commit 4fb2d19

Browse files
Apply suggestions from code review
Co-authored-by: Oscar Gustafsson <[email protected]>
1 parent 252e42e commit 4fb2d19

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ def test_bar3d_lightsource():
219219

220220
@mpl3d_image_comparison(['contour3d.png'], style='mpl20')
221221
def test_contour3d():
222+
# Remove when regenerating the image
222223
plt.rcParams['axes3d.automargin'] = True
223224
fig = plt.figure()
224225
ax = fig.add_subplot(projection='3d')
@@ -276,7 +277,6 @@ def test_contourf3d_fill():
276277
['max', [0, 2, 4, 6]]])
277278
@check_figures_equal(extensions=["png"])
278279
def test_contourf3d_extend(fig_test, fig_ref, extend, levels):
279-
plt.rcParams['axes3d.automargin'] = True
280280
X, Y = np.meshgrid(np.arange(-2, 2, 0.25), np.arange(-2, 2, 0.25))
281281
# Z is in the range [0, 8]
282282
Z = X**2 + Y**2
@@ -715,7 +715,6 @@ def test_text3d():
715715

716716
@check_figures_equal(extensions=['png'])
717717
def test_text3d_modification(fig_ref, fig_test):
718-
plt.rcParams['axes3d.automargin'] = True
719718
# Modifying the Text position after the fact should work the same as
720719
# setting it directly.
721720
zdirs = (None, 'x', 'y', 'z', (1, 1, 0), (1, 1, 1))
@@ -1471,7 +1470,6 @@ def test_ax3d_tickcolour():
14711470

14721471
@check_figures_equal(extensions=["png"])
14731472
def test_ticklabel_format(fig_test, fig_ref):
1474-
plt.rcParams['axes3d.automargin'] = True
14751473
axs = fig_test.subplots(4, 5, subplot_kw={"projection": "3d"})
14761474
for ax in axs.flat:
14771475
ax.set_xlim(1e7, 1e7 + 10)

0 commit comments

Comments
 (0)