@@ -219,8 +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
223
- plt .rcParams ['axes3d.automargin' ] = True
222
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
224
223
fig = plt .figure ()
225
224
ax = fig .add_subplot (projection = '3d' )
226
225
X , Y , Z = axes3d .get_test_data (0.05 )
@@ -232,7 +231,7 @@ def test_contour3d():
232
231
233
232
@mpl3d_image_comparison (['contour3d_extend3d.png' ], style = 'mpl20' )
234
233
def test_contour3d_extend3d ():
235
- plt .rcParams ['axes3d.automargin' ] = True
234
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
236
235
fig = plt .figure ()
237
236
ax = fig .add_subplot (projection = '3d' )
238
237
X , Y , Z = axes3d .get_test_data (0.05 )
@@ -244,7 +243,7 @@ def test_contour3d_extend3d():
244
243
245
244
@mpl3d_image_comparison (['contourf3d.png' ], style = 'mpl20' )
246
245
def test_contourf3d ():
247
- plt .rcParams ['axes3d.automargin' ] = True
246
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
248
247
fig = plt .figure ()
249
248
ax = fig .add_subplot (projection = '3d' )
250
249
X , Y , Z = axes3d .get_test_data (0.05 )
@@ -258,7 +257,7 @@ def test_contourf3d():
258
257
259
258
@mpl3d_image_comparison (['contourf3d_fill.png' ], style = 'mpl20' )
260
259
def test_contourf3d_fill ():
261
- plt .rcParams ['axes3d.automargin' ] = True
260
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
262
261
fig = plt .figure ()
263
262
ax = fig .add_subplot (projection = '3d' )
264
263
X , Y = np .meshgrid (np .arange (- 2 , 2 , 0.25 ), np .arange (- 2 , 2 , 0.25 ))
@@ -302,7 +301,7 @@ def test_contourf3d_extend(fig_test, fig_ref, extend, levels):
302
301
303
302
@mpl3d_image_comparison (['tricontour.png' ], tol = 0.02 , style = 'mpl20' )
304
303
def test_tricontour ():
305
- plt .rcParams ['axes3d.automargin' ] = True
304
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
306
305
fig = plt .figure ()
307
306
308
307
np .random .seed (19680801 )
@@ -372,7 +371,7 @@ def f(t):
372
371
t1 = np .arange (0.0 , 5.0 , 0.1 )
373
372
t2 = np .arange (0.0 , 5.0 , 0.02 )
374
373
375
- plt .rcParams ['axes3d.automargin' ] = True
374
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
376
375
fig = plt .figure (figsize = plt .figaspect (2. ))
377
376
ax = fig .add_subplot (2 , 1 , 1 )
378
377
ax .plot (t1 , f (t1 ), 'bo' , t2 , f (t2 ), 'k--' , markerfacecolor = 'green' )
@@ -404,7 +403,7 @@ def test_tight_layout_text(fig_test, fig_ref):
404
403
405
404
@mpl3d_image_comparison (['scatter3d.png' ], style = 'mpl20' )
406
405
def test_scatter3d ():
407
- plt .rcParams ['axes3d.automargin' ] = True
406
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
408
407
fig = plt .figure ()
409
408
ax = fig .add_subplot (projection = '3d' )
410
409
ax .scatter (np .arange (10 ), np .arange (10 ), np .arange (10 ),
@@ -418,7 +417,7 @@ def test_scatter3d():
418
417
419
418
@mpl3d_image_comparison (['scatter3d_color.png' ], style = 'mpl20' )
420
419
def test_scatter3d_color ():
421
- plt .rcParams ['axes3d.automargin' ] = True
420
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
422
421
fig = plt .figure ()
423
422
ax = fig .add_subplot (projection = '3d' )
424
423
@@ -603,14 +602,14 @@ def test_surface3d():
603
602
Z = np .sin (R )
604
603
surf = ax .plot_surface (X , Y , Z , rcount = 40 , ccount = 40 , cmap = cm .coolwarm ,
605
604
lw = 0 , antialiased = False )
606
- plt .rcParams ['axes3d.automargin' ] = True
605
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
607
606
ax .set_zlim (- 1.01 , 1.01 )
608
607
fig .colorbar (surf , shrink = 0.5 , aspect = 5 )
609
608
610
609
611
610
@image_comparison (['surface3d_label_offset_tick_position.png' ], style = 'mpl20' )
612
611
def test_surface3d_label_offset_tick_position ():
613
- plt .rcParams ['axes3d.automargin' ] = True
612
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
614
613
ax = plt .figure ().add_subplot (projection = "3d" )
615
614
616
615
x , y = np .mgrid [0 :6 * np .pi :0.25 , 0 :4 * np .pi :0.25 ]
@@ -635,7 +634,7 @@ def test_surface3d_shaded():
635
634
Z = np .sin (R )
636
635
ax .plot_surface (X , Y , Z , rstride = 5 , cstride = 5 ,
637
636
color = [0.25 , 1 , 0.25 ], lw = 1 , antialiased = False )
638
- plt .rcParams ['axes3d.automargin' ] = True
637
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
639
638
ax .set_zlim (- 1.01 , 1.01 )
640
639
641
640
@@ -704,7 +703,7 @@ def test_text3d():
704
703
705
704
ax .text (1 , 1 , 1 , "red" , color = 'red' )
706
705
ax .text2D (0.05 , 0.95 , "2D Text" , transform = ax .transAxes )
707
- plt .rcParams ['axes3d.automargin' ] = True
706
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
708
707
ax .set_xlim3d (0 , 10 )
709
708
ax .set_ylim3d (0 , 10 )
710
709
ax .set_zlim3d (0 , 10 )
@@ -818,7 +817,7 @@ def test_mixedsamplesraises():
818
817
819
818
@mpl3d_image_comparison (['quiver3d.png' ], style = 'mpl20' )
820
819
def test_quiver3d ():
821
- plt .rcParams ['axes3d.automargin' ] = True
820
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
822
821
fig = plt .figure ()
823
822
ax = fig .add_subplot (projection = '3d' )
824
823
pivots = ['tip' , 'middle' , 'tail' ]
@@ -987,7 +986,7 @@ def test_add_collection3d_zs_array():
987
986
988
987
assert line is not None
989
988
990
- plt .rcParams ['axes3d.automargin' ] = True
989
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
991
990
ax .set_xlim (- 5 , 5 )
992
991
ax .set_ylim (- 4 , 6 )
993
992
ax .set_zlim (- 2 , 2 )
@@ -1014,7 +1013,7 @@ def test_add_collection3d_zs_scalar():
1014
1013
1015
1014
assert line is not None
1016
1015
1017
- plt .rcParams ['axes3d.automargin' ] = True
1016
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
1018
1017
ax .set_xlim (- 5 , 5 )
1019
1018
ax .set_ylim (- 4 , 6 )
1020
1019
ax .set_zlim (0 , 2 )
@@ -1136,7 +1135,7 @@ def test_proj_axes_cube():
1136
1135
for x , y , t in zip (txs , tys , ts ):
1137
1136
ax .text (x , y , t )
1138
1137
1139
- plt .rcParams ['axes3d.automargin' ] = True
1138
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
1140
1139
ax .set_xlim (- 0.2 , 0.2 )
1141
1140
ax .set_ylim (- 0.2 , 0.2 )
1142
1141
@@ -1166,7 +1165,7 @@ def test_proj_axes_cube_ortho():
1166
1165
for x , y , t in zip (txs , tys , ts ):
1167
1166
ax .text (x , y , t )
1168
1167
1169
- plt .rcParams ['axes3d.automargin' ] = True
1168
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
1170
1169
ax .set_xlim (- 200 , 200 )
1171
1170
ax .set_ylim (- 200 , 200 )
1172
1171
@@ -1571,7 +1570,7 @@ def test_errorbar3d():
1571
1570
1572
1571
@image_comparison (['stem3d.png' ], style = 'mpl20' , tol = 0.003 )
1573
1572
def test_stem3d ():
1574
- plt .rcParams ['axes3d.automargin' ] = True
1573
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
1575
1574
fig , axs = plt .subplots (2 , 3 , figsize = (8 , 6 ),
1576
1575
constrained_layout = True ,
1577
1576
subplot_kw = {'projection' : '3d' })
@@ -1877,7 +1876,7 @@ def test_subfigure_simple():
1877
1876
@image_comparison (baseline_images = ['computed_zorder' ], remove_text = True ,
1878
1877
extensions = ['png' ], style = ('mpl20' ))
1879
1878
def test_computed_zorder ():
1880
- plt .rcParams ['axes3d.automargin' ] = True
1879
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
1881
1880
fig = plt .figure ()
1882
1881
ax1 = fig .add_subplot (221 , projection = '3d' )
1883
1882
ax2 = fig .add_subplot (222 , projection = '3d' )
@@ -2073,7 +2072,7 @@ def test_pathpatch_3d(fig_test, fig_ref):
2073
2072
remove_text = True ,
2074
2073
style = 'mpl20' )
2075
2074
def test_scatter_spiral ():
2076
- plt .rcParams ['axes3d.automargin' ] = True
2075
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
2077
2076
fig = plt .figure ()
2078
2077
ax = fig .add_subplot (projection = '3d' )
2079
2078
th = np .linspace (0 , 2 * np .pi * 6 , 256 )
0 commit comments