77from mpl_toolkits .axisartist import Axes , SubplotHost
88
99
10- # TODO: tighten tolerance after baseline image is regenerated for text overhaul
11- @image_comparison (['SubplotZero.png' ], style = 'default' , tol = 0.02 )
10+ @image_comparison (['SubplotZero.png' ], style = 'mpl20' )
1211def test_SubplotZero ():
13- # Remove this line when this test image is regenerated.
14- plt .rcParams .update ({"xtick.direction" : "in" , "ytick.direction" : "in" })
15-
1612 fig = plt .figure ()
1713
1814 ax = SubplotZero (fig , 1 , 1 , 1 )
@@ -29,12 +25,8 @@ def test_SubplotZero():
2925 ax .set_ylabel ("Test" )
3026
3127
32- # TODO: tighten tolerance after baseline image is regenerated for text overhaul
33- @image_comparison (['Subplot.png' ], style = 'default' , tol = 0.02 )
28+ @image_comparison (['Subplot.png' ], style = 'mpl20' )
3429def test_Subplot ():
35- # Remove this line when this test image is regenerated.
36- plt .rcParams .update ({"xtick.direction" : "in" , "ytick.direction" : "in" })
37-
3830 fig = plt .figure ()
3931
4032 ax = Subplot (fig , 1 , 1 , 1 )
@@ -44,8 +36,8 @@ def test_Subplot():
4436 ax .plot (xx , np .sin (xx ))
4537 ax .set_ylabel ("Test" )
4638
47- ax .axis ["top " ].major_ticks .set_tick_out (True )
48- ax .axis ["bottom " ].major_ticks .set_tick_out (True )
39+ ax .axis ["left " ].major_ticks .set_tick_out (False )
40+ ax .axis ["right " ].major_ticks .set_tick_out (False )
4941
5042 ax .axis ["bottom" ].set_label ("Tk0" )
5143
@@ -60,9 +52,8 @@ def test_Axes():
6052
6153
6254@image_comparison (['ParasiteAxesAuxTrans_meshplot.png' ],
63- remove_text = True , style = 'default ' , tol = 0.075 )
55+ remove_text = True , style = 'mpl20 ' , tol = 0.075 )
6456def test_ParasiteAxesAuxTrans ():
65- # Remove this line when this test image is regenerated.
6657 plt .rcParams .update ({"xtick.direction" : "in" , "ytick.direction" : "in" })
6758 data = np .ones ((6 , 6 ))
6859 data [2 , 2 ] = 2
@@ -140,11 +131,8 @@ def test_axisline_style_tight():
140131 ax .axis [direction ].set_visible (False )
141132
142133
143- # TODO: tighten tolerance after baseline image is regenerated for text overhaul
144- @image_comparison (['subplotzero_ylabel.png' ], style = 'mpl20' , tol = 0.02 )
134+ @image_comparison (['subplotzero_ylabel.png' ], style = 'mpl20' )
145135def test_subplotzero_ylabel ():
146- # Remove this line when this test image is regenerated.
147- plt .rcParams .update ({"xtick.direction" : "in" , "ytick.direction" : "in" })
148136 fig = plt .figure ()
149137 ax = fig .add_subplot (111 , axes_class = SubplotZero )
150138
0 commit comments