Commit b3ef54f
committed
Fix path_effects to work on text with spaces only
When a line of text contains no visual output (spaces only or empty
newlines), there is no path to create for the effects. So, the data
array for this non-path does not have the commonly expected shape for a
path, so the logic bails with an error.
The solution is, do not try to draw a path when the text string has
only spaces and newlines.
closes matplotlib#226871 parent 11737d0 commit b3ef54f
File tree
3 files changed
+16
-0
lines changed- lib/matplotlib
- tests
- baseline_images/test_patheffects
3 files changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
0 commit comments