Commit 45cd371
committed
backend_svg: separate font attributes && use translate(x y) in RendedSVG._draw_text_as_path
fixed linting (flake8 test failing)
Fixed checks in testing for svg.fonttype = none
fixed flake8 && failing tests
linting
modified tspans && fix to svg tests
Updated baseline images for svg tests
Update lib/matplotlib/testing/compare.py
nicer regex to check if font syling in svg is specified
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Apply suggestions from code review
More concise font testing in test_backend_svg.py
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Update lib/matplotlib/tests/test_mathtext.py
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Update backend_svg.py
inlining `style`
restored test images
update to baseline images
Fix to regex for testing/compare.py::compare
forgot one baseline image1 parent ed17e00 commit 45cd371Copy full SHA for 45cd371
File tree
Expand file treeCollapse file tree
30 files changed
+14072
-13299
lines changedOpen diff view settings
Filter options
- lib/matplotlib
- backends
- testing
- tests
- baseline_images
- test_axes
- test_collections
- test_patches
- test_simplification
- test_spines
- test_subplots
- test_text
- test_tightlayout
Expand file treeCollapse file tree
30 files changed
+14072
-13299
lines changedOpen diff view settings
Collapse file
lib/matplotlib/backends/backend_svg.py
Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_svg.py+43-52Lines changed: 43 additions & 52 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1066 | 1066 | |
1067 | 1067 | |
1068 | 1068 | |
1069 | | - |
1070 | | - |
1071 | | - |
1072 | | - |
1073 | | - |
1074 | | - |
| 1069 | + |
| 1070 | + |
| 1071 | + |
| 1072 | + |
| 1073 | + |
| 1074 | + |
| 1075 | + |
1075 | 1076 | |
1076 | 1077 | |
1077 | 1078 | |
| ||
1109 | 1110 | |
1110 | 1111 | |
1111 | 1112 | |
1112 | | - |
| 1113 | + |
| 1114 | + |
1113 | 1115 | |
1114 | | - |
| 1116 | + |
1115 | 1117 | |
1116 | 1118 | |
1117 | 1119 | |
1118 | | - |
| 1120 | + |
1119 | 1121 | |
1120 | 1122 | |
1121 | 1123 | |
1122 | 1124 | |
1123 | | - |
| 1125 | + |
1124 | 1126 | |
1125 | | - |
| 1127 | + |
1126 | 1128 | |
1127 | | - |
| 1129 | + |
1128 | 1130 | |
1129 | 1131 | |
1130 | | - |
| 1132 | + |
1131 | 1133 | |
1132 | 1134 | |
1133 | 1135 | |
| ||
1150 | 1152 | |
1151 | 1153 | |
1152 | 1154 | |
1153 | | - |
1154 | | - |
1155 | | - |
1156 | | - |
1157 | | - |
1158 | | - |
| 1155 | + |
| 1156 | + |
| 1157 | + |
| 1158 | + |
| 1159 | + |
| 1160 | + |
1159 | 1161 | |
1160 | | - |
1161 | | - |
| 1162 | + |
| 1163 | + |
1162 | 1164 | |
1163 | 1165 | |
1164 | 1166 | |
| ||
1180 | 1182 | |
1181 | 1183 | |
1182 | 1184 | |
1183 | | - |
| 1185 | + |
1184 | 1186 | |
1185 | 1187 | |
1186 | 1188 | |
1187 | | - |
| 1189 | + |
1188 | 1190 | |
1189 | 1191 | |
1190 | 1192 | |
| ||
1204 | 1206 | |
1205 | 1207 | |
1206 | 1208 | |
1207 | | - |
| 1209 | + |
1208 | 1210 | |
1209 | 1211 | |
1210 | 1212 | |
| ||
1216 | 1218 | |
1217 | 1219 | |
1218 | 1220 | |
1219 | | - |
| 1221 | + |
| 1222 | + |
1220 | 1223 | |
1221 | | - |
| 1224 | + |
1222 | 1225 | |
1223 | | - |
| 1226 | + |
1224 | 1227 | |
1225 | | - |
1226 | | - |
1227 | | - |
1228 | | - |
1229 | | - |
1230 | | - |
| 1228 | + |
| 1229 | + |
| 1230 | + |
1231 | 1231 | |
1232 | | - |
1233 | | - |
| 1232 | + |
| 1233 | + |
1234 | 1234 | |
1235 | 1235 | |
1236 | 1236 | |
1237 | 1237 | |
1238 | 1238 | |
1239 | | - |
1240 | | - |
1241 | | - |
1242 | | - |
1243 | | - |
1244 | | - |
1245 | | - |
1246 | | - |
1247 | | - |
1248 | | - |
1249 | | - |
1250 | | - |
1251 | | - |
1252 | | - |
1253 | | - |
1254 | | - |
1255 | | - |
| 1239 | + |
| 1240 | + |
| 1241 | + |
| 1242 | + |
| 1243 | + |
| 1244 | + |
| 1245 | + |
| 1246 | + |
1256 | 1247 | |
1257 | 1248 | |
1258 | 1249 | |
|
Collapse file
lib/matplotlib/testing/compare.py
Copy file name to clipboardExpand all lines: lib/matplotlib/testing/compare.py+10-1Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
| 16 | + |
16 | 17 | |
17 | 18 | |
18 | 19 | |
| ||
305 | 306 | |
306 | 307 | |
307 | 308 | |
308 | | - |
| 309 | + |
| 310 | + |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
| 317 | + |
309 | 318 | |
310 | 319 | |
311 | 320 | |
|
0 commit comments