Commit 0dc4e43
committed
Don't crash qt figure options on unknown marker styles.
Currently, if a plot uses a "custom" marker style (e.g., a mathtext
string, `plt.plot([1, 2], ls="none", marker="$1/2$")`, or a n-gon,
`marker=(7, 0)`), trying to open the qt figure options editor will crash
the process because of an unhandled KeyError in `prepare_data` (at
`canonical_init = name2short[d[init]]`).
Instead, create an entry on-the-fly for that custom style.1 parent 1652ed1 commit 0dc4e43
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
0 commit comments