1010# TODO: tighten tolerance after baseline image is regenerated for text overhaul
1111@image_comparison (['SubplotZero.png' ], style = 'default' , tol = 0.02 )
1212def test_SubplotZero ():
13- # Remove this line when this test image is regenerated.
14- plt .rcParams .update ({
15- "text.kerning_factor" : 6 , "xtick.direction" : "in" , "ytick.direction" : "in" })
16-
1713 fig = plt .figure ()
1814
1915 ax = SubplotZero (fig , 1 , 1 , 1 )
@@ -33,10 +29,6 @@ def test_SubplotZero():
3329# TODO: tighten tolerance after baseline image is regenerated for text overhaul
3430@image_comparison (['Subplot.png' ], style = 'default' , tol = 0.02 )
3531def test_Subplot ():
36- # Remove this line when this test image is regenerated.
37- plt .rcParams .update ({
38- "text.kerning_factor" : 6 , "xtick.direction" : "in" , "ytick.direction" : "in" })
39-
4032 fig = plt .figure ()
4133
4234 ax = Subplot (fig , 1 , 1 , 1 )
@@ -64,7 +56,6 @@ def test_Axes():
6456@image_comparison (['ParasiteAxesAuxTrans_meshplot.png' ],
6557 remove_text = True , style = 'default' , tol = 0.075 )
6658def test_ParasiteAxesAuxTrans ():
67- # Remove this line when this test image is regenerated.
6859 plt .rcParams .update ({"xtick.direction" : "in" , "ytick.direction" : "in" })
6960 data = np .ones ((6 , 6 ))
7061 data [2 , 2 ] = 2
@@ -97,7 +88,6 @@ def test_ParasiteAxesAuxTrans():
9788
9889@image_comparison (['axisline_style.png' ], remove_text = True , style = 'mpl20' )
9990def test_axisline_style ():
100- # Remove this line when this test image is regenerated.
10191 plt .rcParams .update ({"xtick.direction" : "in" , "ytick.direction" : "in" })
10292 fig = plt .figure (figsize = (2 , 2 ))
10393 ax = fig .add_subplot (axes_class = AxesZero )
@@ -113,7 +103,6 @@ def test_axisline_style():
113103@image_comparison (['axisline_style_size_color.png' ], remove_text = True ,
114104 style = 'mpl20' )
115105def test_axisline_style_size_color ():
116- # Remove this line when this test image is regenerated.
117106 plt .rcParams .update ({"xtick.direction" : "in" , "ytick.direction" : "in" })
118107 fig = plt .figure (figsize = (2 , 2 ))
119108 ax = fig .add_subplot (axes_class = AxesZero )
@@ -129,7 +118,6 @@ def test_axisline_style_size_color():
129118@image_comparison (['axisline_style_tight.png' ], remove_text = True ,
130119 style = 'mpl20' )
131120def test_axisline_style_tight ():
132- # Remove this line when this test image is regenerated.
133121 plt .rcParams .update ({"xtick.direction" : "in" , "ytick.direction" : "in" })
134122 fig = plt .figure (figsize = (2 , 2 ), layout = 'tight' )
135123 ax = fig .add_subplot (axes_class = AxesZero )
@@ -145,8 +133,6 @@ def test_axisline_style_tight():
145133# TODO: tighten tolerance after baseline image is regenerated for text overhaul
146134@image_comparison (['subplotzero_ylabel.png' ], style = 'mpl20' , tol = 0.02 )
147135def test_subplotzero_ylabel ():
148- # Remove this line when this test image is regenerated.
149- plt .rcParams .update ({"xtick.direction" : "in" , "ytick.direction" : "in" })
150136 fig = plt .figure ()
151137 ax = fig .add_subplot (111 , axes_class = SubplotZero )
152138
0 commit comments