Commit d206a0e
MNT: use get_fillstyle not is_filled to null facecolor
This is brittle, but matches the behavior in Line2D.
MarkerStyle objects have two coupled, but not fully redundant methods
for determining if the maker is filled: the `is_filled` and
`get_fillstyle` methods. If `ms.get_fillstyle() == 'none'` then
`ms.is_filled() is False`, however the converse is not True. In
particular the markers that can not be filled (because the Paths they
are made out of can not be closed) have `ms.get_fillstyle() == 'full'`
and `ms.is_filled() is False`. In Line2D we filter on the value of
`get_fillstyle` not on `is_filled` so do the same in `Axes.scatter`.
In Line2D we do the validation at draw time (because Line2D holds onto
its MarkerStyle object instead of just extracting the path).
The logic for fillstyle on Markers came in via matplotlib#447/
213459e.
closes matplotlib#17849
Revises matplotlib#17543 / d86cc2b
Co-authored-by: Tim Hoffmann <[email protected]>
Co-authored-by: Jody Klymak <[email protected]>
Co-authored-by: Tim Hoffmann <[email protected]>1 parent dbe3622 commit d206a0e
2 files changed
+57
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4490 | 4490 | | |
4491 | 4491 | | |
4492 | 4492 | | |
| 4493 | + | |
| 4494 | + | |
| 4495 | + | |
| 4496 | + | |
4493 | 4497 | | |
4494 | 4498 | | |
4495 | 4499 | | |
| |||
4518 | 4522 | | |
4519 | 4523 | | |
4520 | 4524 | | |
| 4525 | + | |
| 4526 | + | |
| 4527 | + | |
| 4528 | + | |
| 4529 | + | |
| 4530 | + | |
| 4531 | + | |
| 4532 | + | |
| 4533 | + | |
| 4534 | + | |
| 4535 | + | |
| 4536 | + | |
| 4537 | + | |
| 4538 | + | |
| 4539 | + | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
| 4543 | + | |
| 4544 | + | |
| 4545 | + | |
| 4546 | + | |
| 4547 | + | |
| 4548 | + | |
| 4549 | + | |
| 4550 | + | |
| 4551 | + | |
| 4552 | + | |
| 4553 | + | |
| 4554 | + | |
4521 | 4555 | | |
4522 | 4556 | | |
4523 | 4557 | | |
| |||
4529 | 4563 | | |
4530 | 4564 | | |
4531 | 4565 | | |
4532 | | - | |
4533 | | - | |
| 4566 | + | |
| 4567 | + | |
4534 | 4568 | | |
4535 | 4569 | | |
4536 | 4570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2145 | 2145 | | |
2146 | 2146 | | |
2147 | 2147 | | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
2148 | 2159 | | |
2149 | 2160 | | |
2150 | 2161 | | |
| |||
6939 | 6950 | | |
6940 | 6951 | | |
6941 | 6952 | | |
| 6953 | + | |
| 6954 | + | |
| 6955 | + | |
| 6956 | + | |
| 6957 | + | |
| 6958 | + | |
| 6959 | + | |
| 6960 | + | |
| 6961 | + | |
| 6962 | + | |
0 commit comments