| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Could we normalize None as input to 0 instead? The failures look real, but did not dig into them.... |
Sorry, something went wrong.
|
The failures are real, need to look into it. |
Sorry, something went wrong.
|
figured out the failure, now fixed, should be good to go. |
Sorry, something went wrong.
There was a problem hiding this comment.
Rebase and maybe small tweak to a sentence.
Sorry, something went wrong.
e.g. `plot([1, 2], ls=(None, (4, 4)))` which was previously a synonym for `plot([1, 2], ls=(0, (4, 4)))` which means "dash-pattern of 4pt-long dashes separated by 4pt spaces, with an offset of 0pt at start". Passing None instead of 0 was already not (likely, never) supported for pdf, ps, or svg (an exception is raised at savefig() time for ps/svg, an invalid pdf is generated). There isn't much of a point in supporting None (this also makes e.g. mplcairo more complex because of static typing in C++ extensions), so just deprecate it.
|
edited accordingly, and rebased. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
e.g. plot([1, 2], ls=(None, (4, 4))) which was previously a synonym
for plot([1, 2], ls=(0, (4, 4))) which means "dash-pattern of
4pt-long dashes separated by 4pt spaces, with an offset of 0pt at
start".
Passing None instead of 0 was already not (likely, never) supported for
pdf, ps, or svg (an exception is raised at savefig() time for ps/svg, an
invalid pdf is generated). There isn't much of a point in supporting
None (this also makes e.g. mplcairo more complex because of static
typing in C++ extensions), so just deprecate it.
Goes on top of #15827.
Edit: closes #14996, which is basically the issue described here.
PR Checklist