@@ -207,8 +207,7 @@ def test_bar3d_lightsource():
207
207
208
208
@mpl3d_image_comparison (['contour3d.png' ], style = 'mpl20' )
209
209
def test_contour3d ():
210
- # Remove when regenerating the image
211
- plt .rcParams ['axes3d.automargin' ] = True
210
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
212
211
fig = plt .figure ()
213
212
ax = fig .add_subplot (projection = '3d' )
214
213
X , Y , Z = axes3d .get_test_data (0.05 )
@@ -222,7 +221,7 @@ def test_contour3d():
222
221
223
222
@mpl3d_image_comparison (['contour3d_extend3d.png' ], style = 'mpl20' )
224
223
def test_contour3d_extend3d ():
225
- plt .rcParams ['axes3d.automargin' ] = True
224
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
226
225
fig = plt .figure ()
227
226
ax = fig .add_subplot (projection = '3d' )
228
227
X , Y , Z = axes3d .get_test_data (0.05 )
@@ -234,7 +233,7 @@ def test_contour3d_extend3d():
234
233
235
234
@mpl3d_image_comparison (['contourf3d.png' ], style = 'mpl20' )
236
235
def test_contourf3d ():
237
- plt .rcParams ['axes3d.automargin' ] = True
236
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
238
237
fig = plt .figure ()
239
238
ax = fig .add_subplot (projection = '3d' )
240
239
X , Y , Z = axes3d .get_test_data (0.05 )
@@ -248,7 +247,7 @@ def test_contourf3d():
248
247
249
248
@mpl3d_image_comparison (['contourf3d_fill.png' ], style = 'mpl20' )
250
249
def test_contourf3d_fill ():
251
- plt .rcParams ['axes3d.automargin' ] = True
250
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
252
251
fig = plt .figure ()
253
252
ax = fig .add_subplot (projection = '3d' )
254
253
X , Y = np .meshgrid (np .arange (- 2 , 2 , 0.25 ), np .arange (- 2 , 2 , 0.25 ))
@@ -292,7 +291,7 @@ def test_contourf3d_extend(fig_test, fig_ref, extend, levels):
292
291
293
292
@mpl3d_image_comparison (['tricontour.png' ], tol = 0.02 , style = 'mpl20' )
294
293
def test_tricontour ():
295
- plt .rcParams ['axes3d.automargin' ] = True
294
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
296
295
fig = plt .figure ()
297
296
298
297
np .random .seed (19680801 )
@@ -362,7 +361,7 @@ def f(t):
362
361
t1 = np .arange (0.0 , 5.0 , 0.1 )
363
362
t2 = np .arange (0.0 , 5.0 , 0.02 )
364
363
365
- plt .rcParams ['axes3d.automargin' ] = True
364
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
366
365
fig = plt .figure (figsize = plt .figaspect (2. ))
367
366
ax = fig .add_subplot (2 , 1 , 1 )
368
367
ax .plot (t1 , f (t1 ), 'bo' , t2 , f (t2 ), 'k--' , markerfacecolor = 'green' )
@@ -394,7 +393,7 @@ def test_tight_layout_text(fig_test, fig_ref):
394
393
395
394
@mpl3d_image_comparison (['scatter3d.png' ], style = 'mpl20' )
396
395
def test_scatter3d ():
397
- plt .rcParams ['axes3d.automargin' ] = True
396
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
398
397
fig = plt .figure ()
399
398
ax = fig .add_subplot (projection = '3d' )
400
399
ax .scatter (np .arange (10 ), np .arange (10 ), np .arange (10 ),
@@ -408,7 +407,7 @@ def test_scatter3d():
408
407
409
408
@mpl3d_image_comparison (['scatter3d_color.png' ], style = 'mpl20' )
410
409
def test_scatter3d_color ():
411
- plt .rcParams ['axes3d.automargin' ] = True
410
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
412
411
fig = plt .figure ()
413
412
ax = fig .add_subplot (projection = '3d' )
414
413
@@ -593,14 +592,14 @@ def test_surface3d():
593
592
Z = np .sin (R )
594
593
surf = ax .plot_surface (X , Y , Z , rcount = 40 , ccount = 40 , cmap = cm .coolwarm ,
595
594
lw = 0 , antialiased = False )
596
- plt .rcParams ['axes3d.automargin' ] = True
595
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
597
596
ax .set_zlim (- 1.01 , 1.01 )
598
597
fig .colorbar (surf , shrink = 0.5 , aspect = 5 )
599
598
600
599
601
600
@image_comparison (['surface3d_label_offset_tick_position.png' ], style = 'mpl20' )
602
601
def test_surface3d_label_offset_tick_position ():
603
- plt .rcParams ['axes3d.automargin' ] = True
602
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
604
603
ax = plt .figure ().add_subplot (projection = "3d" )
605
604
606
605
x , y = np .mgrid [0 :6 * np .pi :0.25 , 0 :4 * np .pi :0.25 ]
@@ -625,7 +624,7 @@ def test_surface3d_shaded():
625
624
Z = np .sin (R )
626
625
ax .plot_surface (X , Y , Z , rstride = 5 , cstride = 5 ,
627
626
color = [0.25 , 1 , 0.25 ], lw = 1 , antialiased = False )
628
- plt .rcParams ['axes3d.automargin' ] = True
627
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
629
628
ax .set_zlim (- 1.01 , 1.01 )
630
629
631
630
@@ -694,7 +693,7 @@ def test_text3d():
694
693
695
694
ax .text (1 , 1 , 1 , "red" , color = 'red' )
696
695
ax .text2D (0.05 , 0.95 , "2D Text" , transform = ax .transAxes )
697
- plt .rcParams ['axes3d.automargin' ] = True
696
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
698
697
ax .set_xlim3d (0 , 10 )
699
698
ax .set_ylim3d (0 , 10 )
700
699
ax .set_zlim3d (0 , 10 )
@@ -808,7 +807,7 @@ def test_mixedsamplesraises():
808
807
809
808
@mpl3d_image_comparison (['quiver3d.png' ], style = 'mpl20' )
810
809
def test_quiver3d ():
811
- plt .rcParams ['axes3d.automargin' ] = True
810
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
812
811
fig = plt .figure ()
813
812
ax = fig .add_subplot (projection = '3d' )
814
813
pivots = ['tip' , 'middle' , 'tail' ]
@@ -977,7 +976,7 @@ def test_add_collection3d_zs_array():
977
976
978
977
assert line is not None
979
978
980
- plt .rcParams ['axes3d.automargin' ] = True
979
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
981
980
ax .set_xlim (- 5 , 5 )
982
981
ax .set_ylim (- 4 , 6 )
983
982
ax .set_zlim (- 2 , 2 )
@@ -1004,7 +1003,7 @@ def test_add_collection3d_zs_scalar():
1004
1003
1005
1004
assert line is not None
1006
1005
1007
- plt .rcParams ['axes3d.automargin' ] = True
1006
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
1008
1007
ax .set_xlim (- 5 , 5 )
1009
1008
ax .set_ylim (- 4 , 6 )
1010
1009
ax .set_zlim (0 , 2 )
@@ -1126,7 +1125,7 @@ def test_proj_axes_cube():
1126
1125
for x , y , t in zip (txs , tys , ts ):
1127
1126
ax .text (x , y , t )
1128
1127
1129
- plt .rcParams ['axes3d.automargin' ] = True
1128
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
1130
1129
ax .set_xlim (- 0.2 , 0.2 )
1131
1130
ax .set_ylim (- 0.2 , 0.2 )
1132
1131
@@ -1156,7 +1155,7 @@ def test_proj_axes_cube_ortho():
1156
1155
for x , y , t in zip (txs , tys , ts ):
1157
1156
ax .text (x , y , t )
1158
1157
1159
- plt .rcParams ['axes3d.automargin' ] = True
1158
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
1160
1159
ax .set_xlim (- 200 , 200 )
1161
1160
ax .set_ylim (- 200 , 200 )
1162
1161
@@ -1561,7 +1560,7 @@ def test_errorbar3d():
1561
1560
1562
1561
@image_comparison (['stem3d.png' ], style = 'mpl20' , tol = 0.003 )
1563
1562
def test_stem3d ():
1564
- plt .rcParams ['axes3d.automargin' ] = True
1563
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
1565
1564
fig , axs = plt .subplots (2 , 3 , figsize = (8 , 6 ),
1566
1565
constrained_layout = True ,
1567
1566
subplot_kw = {'projection' : '3d' })
@@ -1867,7 +1866,7 @@ def test_subfigure_simple():
1867
1866
@image_comparison (baseline_images = ['computed_zorder' ], remove_text = True ,
1868
1867
extensions = ['png' ], style = ('mpl20' ))
1869
1868
def test_computed_zorder ():
1870
- plt .rcParams ['axes3d.automargin' ] = True
1869
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
1871
1870
fig = plt .figure ()
1872
1871
ax1 = fig .add_subplot (221 , projection = '3d' )
1873
1872
ax2 = fig .add_subplot (222 , projection = '3d' )
@@ -2063,7 +2062,7 @@ def test_pathpatch_3d(fig_test, fig_ref):
2063
2062
remove_text = True ,
2064
2063
style = 'mpl20' )
2065
2064
def test_scatter_spiral ():
2066
- plt .rcParams ['axes3d.automargin' ] = True
2065
+ plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
2067
2066
fig = plt .figure ()
2068
2067
ax = fig .add_subplot (projection = '3d' )
2069
2068
th = np .linspace (0 , 2 * np .pi * 6 , 256 )
0 commit comments