Commit d350e56
committed
Simplify color/marker disambiguation logic in _process_plot_format.
There's a bit of code in the parsing of plot() format shorthands to
disambiguate the "1" marker and the "1.0" grayscale color string. It's
actually easier to just explicitly check for the bad strings.
This also makes it clearer that we *could* have supported "0" as
unambiguous color string (white) as there's no "0" marker (there's a
0 (int) marker, which is not the same...), but let's not bother with
changing any semantics.1 parent bf6cc30 commit d350e56
1 file changed
+8
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
153 | 154 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
| 155 | + | |
164 | 156 | | |
165 | 157 | | |
166 | 158 | | |
| |||
0 commit comments