@@ -219,6 +219,7 @@ def test_bar3d_lightsource():
219
219
220
220
@mpl3d_image_comparison (['contour3d.png' ], style = 'mpl20' )
221
221
def test_contour3d ():
222
+ # Remove when regenerating the image
222
223
plt .rcParams ['axes3d.automargin' ] = True
223
224
fig = plt .figure ()
224
225
ax = fig .add_subplot (projection = '3d' )
@@ -276,7 +277,6 @@ def test_contourf3d_fill():
276
277
['max' , [0 , 2 , 4 , 6 ]]])
277
278
@check_figures_equal (extensions = ["png" ])
278
279
def test_contourf3d_extend (fig_test , fig_ref , extend , levels ):
279
- plt .rcParams ['axes3d.automargin' ] = True
280
280
X , Y = np .meshgrid (np .arange (- 2 , 2 , 0.25 ), np .arange (- 2 , 2 , 0.25 ))
281
281
# Z is in the range [0, 8]
282
282
Z = X ** 2 + Y ** 2
@@ -715,7 +715,6 @@ def test_text3d():
715
715
716
716
@check_figures_equal (extensions = ['png' ])
717
717
def test_text3d_modification (fig_ref , fig_test ):
718
- plt .rcParams ['axes3d.automargin' ] = True
719
718
# Modifying the Text position after the fact should work the same as
720
719
# setting it directly.
721
720
zdirs = (None , 'x' , 'y' , 'z' , (1 , 1 , 0 ), (1 , 1 , 1 ))
@@ -1471,7 +1470,6 @@ def test_ax3d_tickcolour():
1471
1470
1472
1471
@check_figures_equal (extensions = ["png" ])
1473
1472
def test_ticklabel_format (fig_test , fig_ref ):
1474
- plt .rcParams ['axes3d.automargin' ] = True
1475
1473
axs = fig_test .subplots (4 , 5 , subplot_kw = {"projection" : "3d" })
1476
1474
for ax in axs .flat :
1477
1475
ax .set_xlim (1e7 , 1e7 + 10 )
0 commit comments