@@ -76,7 +76,7 @@ def test_repr():
7676 "label='label', title={'center': 'title'}, xlabel='x', ylabel='y'>" )
7777
7878
79- @check_figures_equal ()
79+ @check_figures_equal (extensions = [ 'png' ] )
8080def test_label_loc_vertical (fig_test , fig_ref ):
8181 ax = fig_test .subplots ()
8282 sc = ax .scatter ([1 , 2 ], [1 , 2 ], c = [1 , 2 ], label = 'scatter' )
@@ -95,7 +95,7 @@ def test_label_loc_vertical(fig_test, fig_ref):
9595 cbar .set_label ("Z Label" , y = 1 , ha = 'right' )
9696
9797
98- @check_figures_equal ()
98+ @check_figures_equal (extensions = [ 'png' ] )
9999def test_label_loc_horizontal (fig_test , fig_ref ):
100100 ax = fig_test .subplots ()
101101 sc = ax .scatter ([1 , 2 ], [1 , 2 ], c = [1 , 2 ], label = 'scatter' )
@@ -114,7 +114,7 @@ def test_label_loc_horizontal(fig_test, fig_ref):
114114 cbar .set_label ("Z Label" , x = 0 , ha = 'left' )
115115
116116
117- @check_figures_equal ()
117+ @check_figures_equal (extensions = [ 'png' ] )
118118def test_label_loc_rc (fig_test , fig_ref ):
119119 with matplotlib .rc_context ({"xaxis.labellocation" : "right" ,
120120 "yaxis.labellocation" : "top" }):
@@ -2350,7 +2350,7 @@ def test_bar_pandas_indexed(pd):
23502350
23512351
23522352@mpl .style .context ('default' )
2353- @check_figures_equal ()
2353+ @check_figures_equal (extensions = [ 'png' ] )
23542354def test_bar_hatches (fig_test , fig_ref ):
23552355 ax_test = fig_test .subplots ()
23562356 ax_ref = fig_ref .subplots ()
@@ -3399,7 +3399,7 @@ def layers(n, m):
33993399 axs [1 , 1 ].stackplot (range (100 ), d .T , baseline = 'weighted_wiggle' )
34003400
34013401
3402- @check_figures_equal ()
3402+ @check_figures_equal (extensions = [ 'png' ] )
34033403def test_stackplot_hatching (fig_ref , fig_test ):
34043404 x = np .linspace (0 , 10 , 10 )
34053405 y1 = 1.0 * x
@@ -3582,7 +3582,7 @@ def test_bxp_customwhisker():
35823582 whiskerprops = dict (linestyle = '-' , color = 'm' , lw = 3 )))
35833583
35843584
3585- @check_figures_equal ()
3585+ @check_figures_equal (extensions = [ 'png' ] )
35863586def test_boxplot_median_bound_by_box (fig_test , fig_ref ):
35873587 data = np .arange (3 )
35883588 medianprops_test = {"linewidth" : 12 }
@@ -4390,7 +4390,7 @@ def test_errorbar_colorcycle():
43904390 assert mcolors .to_rgba (ln1 .get_color ()) == mcolors .to_rgba ('C2' )
43914391
43924392
4393- @check_figures_equal ()
4393+ @check_figures_equal (extensions = [ 'png' ] )
43944394def test_errorbar_cycle_ecolor (fig_test , fig_ref ):
43954395 x = np .arange (0.1 , 4 , 0.5 )
43964396 y = [np .exp (- x + n ) for n in range (4 )]
@@ -4589,7 +4589,7 @@ def test_xerr_yerr_not_none():
45894589 ax .errorbar (x = [0 ], y = [0 ], yerr = [[None ], [1 ]])
45904590
45914591
4592- @check_figures_equal ()
4592+ @check_figures_equal (extensions = [ 'png' ] )
45934593def test_errorbar_every (fig_test , fig_ref ):
45944594 x = np .linspace (0 , 1 , 15 )
45954595 y = x * (1 - x )
@@ -5441,7 +5441,7 @@ def test_eb_line_zorder():
54415441 ax .set_title ("errorbar zorder test" )
54425442
54435443
5444- @check_figures_equal ()
5444+ @check_figures_equal (extensions = [ 'png' ] )
54455445def test_axline_loglog (fig_test , fig_ref ):
54465446 ax = fig_test .subplots ()
54475447 ax .set (xlim = (0.1 , 10 ), ylim = (1e-3 , 1 ))
@@ -5454,7 +5454,7 @@ def test_axline_loglog(fig_test, fig_ref):
54545454 ax .loglog ([1 , 10 ], [1e-3 , 1e-2 ], c = "k" )
54555455
54565456
5457- @check_figures_equal ()
5457+ @check_figures_equal (extensions = [ 'png' ] )
54585458def test_axline (fig_test , fig_ref ):
54595459 ax = fig_test .subplots ()
54605460 ax .set (xlim = (- 1 , 1 ), ylim = (- 1 , 1 ))
@@ -5477,7 +5477,7 @@ def test_axline(fig_test, fig_ref):
54775477 ax .axvline (- 0.5 , color = 'C5' )
54785478
54795479
5480- @check_figures_equal ()
5480+ @check_figures_equal (extensions = [ 'png' ] )
54815481def test_axline_transaxes (fig_test , fig_ref ):
54825482 ax = fig_test .subplots ()
54835483 ax .set (xlim = (- 1 , 1 ), ylim = (- 1 , 1 ))
@@ -5494,7 +5494,7 @@ def test_axline_transaxes(fig_test, fig_ref):
54945494 ax .plot ([0 , 0 ], [- 1 , 1 ], color = 'C3' )
54955495
54965496
5497- @check_figures_equal ()
5497+ @check_figures_equal (extensions = [ 'png' ] )
54985498def test_axline_transaxes_panzoom (fig_test , fig_ref ):
54995499 # test that it is robust against pan/zoom and
55005500 # figure resize after plotting
@@ -6550,7 +6550,7 @@ def test_normalize_kwarg_pie():
65506550 assert abs (t2 [0 ][- 1 ].theta2 - 360. ) > 1e-3
65516551
65526552
6553- @check_figures_equal ()
6553+ @check_figures_equal (extensions = [ 'png' ] )
65546554def test_pie_hatch_single (fig_test , fig_ref ):
65556555 x = [0.3 , 0.3 , 0.1 ]
65566556 hatch = '+'
@@ -6559,7 +6559,7 @@ def test_pie_hatch_single(fig_test, fig_ref):
65596559 [w .set_hatch (hatch ) for w in wedges ]
65606560
65616561
6562- @check_figures_equal ()
6562+ @check_figures_equal (extensions = [ 'png' ] )
65636563def test_pie_hatch_multi (fig_test , fig_ref ):
65646564 x = [0.3 , 0.3 , 0.1 ]
65656565 hatch = ['/' , '+' , '.' ]
@@ -9662,7 +9662,7 @@ def test_boxplot_tick_labels():
96629662
96639663
96649664@needs_usetex
9665- @check_figures_equal ()
9665+ @check_figures_equal (extensions = [ 'png' ] )
96669666def test_latex_pie_percent (fig_test , fig_ref ):
96679667
96689668 data = [20 , 10 , 70 ]
0 commit comments