@@ -137,7 +137,8 @@ def test_multiline():
137
137
ax .set_yticks ([])
138
138
139
139
140
- @image_comparison (['multiline2' ], style = 'mpl20' )
140
+ # TODO: tighten tolerance after baseline image is regenerated for text overhaul
141
+ @image_comparison (['multiline2' ], style = 'mpl20' , tol = 0.05 )
141
142
def test_multiline2 ():
142
143
# Remove this line when this test image is regenerated.
143
144
plt .rcParams ['text.kerning_factor' ] = 6
@@ -208,7 +209,8 @@ def test_antialiasing():
208
209
mpl .rcParams ['text.antialiased' ] = False # Should not affect existing text.
209
210
210
211
211
- @image_comparison (['text_contains.png' ])
212
+ # TODO: tighten tolerance after baseline image is regenerated for text overhaul
213
+ @image_comparison (['text_contains.png' ], tol = 0.04 )
212
214
def test_contains ():
213
215
fig = plt .figure ()
214
216
ax = plt .axes ()
@@ -277,7 +279,8 @@ def test_titles():
277
279
ax .set_yticks ([])
278
280
279
281
280
- @image_comparison (['text_alignment' ], style = 'mpl20' )
282
+ # TODO: tighten tolerance after baseline image is regenerated for text overhaul
283
+ @image_comparison (['text_alignment' ], style = 'mpl20' , tol = 0.08 )
281
284
def test_alignment ():
282
285
plt .figure ()
283
286
ax = plt .subplot (1 , 1 , 1 )
@@ -1096,8 +1099,9 @@ def test_empty_annotation_get_window_extent():
1096
1099
assert points [0 , 1 ] == 50.0
1097
1100
1098
1101
1102
+ # TODO: tighten tolerance after baseline image is regenerated for text overhaul
1099
1103
@image_comparison (baseline_images = ['basictext_wrap' ],
1100
- extensions = ['png' ])
1104
+ extensions = ['png' ], tol = 0.3 )
1101
1105
def test_basic_wrap ():
1102
1106
fig = plt .figure ()
1103
1107
plt .axis ([0 , 10 , 0 , 10 ])
@@ -1113,8 +1117,9 @@ def test_basic_wrap():
1113
1117
plt .text (- 1 , 0 , t , ha = 'left' , rotation = - 15 , wrap = True )
1114
1118
1115
1119
1120
+ # TODO: tighten tolerance after baseline image is regenerated for text overhaul
1116
1121
@image_comparison (baseline_images = ['fonttext_wrap' ],
1117
- extensions = ['png' ])
1122
+ extensions = ['png' ], tol = 0.3 )
1118
1123
def test_font_wrap ():
1119
1124
fig = plt .figure ()
1120
1125
plt .axis ([0 , 10 , 0 , 10 ])
@@ -1146,8 +1151,9 @@ def test_va_for_angle():
1146
1151
assert alignment in ['center' , 'top' , 'baseline' ]
1147
1152
1148
1153
1154
+ # TODO: tighten tolerance after baseline image is regenerated for text overhaul
1149
1155
@image_comparison (baseline_images = ['xtick_rotation_mode' ],
1150
- remove_text = False , extensions = ['png' ], style = 'mpl20' )
1156
+ remove_text = False , extensions = ['png' ], style = 'mpl20' , tol = 0.3 )
1151
1157
def test_xtick_rotation_mode ():
1152
1158
fig , ax = plt .subplots (figsize = (12 , 1 ))
1153
1159
ax .set_yticks ([])
@@ -1166,8 +1172,9 @@ def test_xtick_rotation_mode():
1166
1172
plt .subplots_adjust (left = 0.01 , right = 0.99 , top = .6 , bottom = .4 )
1167
1173
1168
1174
1175
+ # TODO: tighten tolerance after baseline image is regenerated for text overhaul
1169
1176
@image_comparison (baseline_images = ['ytick_rotation_mode' ],
1170
- remove_text = False , extensions = ['png' ], style = 'mpl20' )
1177
+ remove_text = False , extensions = ['png' ], style = 'mpl20' , tol = 0.3 )
1171
1178
def test_ytick_rotation_mode ():
1172
1179
fig , ax = plt .subplots (figsize = (1 , 12 ))
1173
1180
ax .set_xticks ([])
0 commit comments