Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Deprecate support for dash-offset = None.#15828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
87e9acf
to9300485
CompareCould we normalize The failures look real, but did not dig into them.... |
The failures are real, need to look into it. |
838c6fc
to93f43a3
Comparefigured out the failure, now fixed, should be good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Rebase and maybe small tweak to a sentence.
Uh oh!
There was an error while loading.Please reload this page.
e.g. `plot([1, 2], ls=(None, (4, 4)))` which was previously a synonymfor `plot([1, 2], ls=(0, (4, 4)))` which means "dash-pattern of4pt-long dashes separated by 4pt spaces, with an offset of 0pt atstart".Passing None instead of 0 was already not (likely, never) supported forpdf, ps, or svg (an exception is raised at savefig() time for ps/svg, aninvalid pdf is generated). There isn't much of a point in supportingNone (this also makes e.g. mplcairo more complex because of statictyping in C++ extensions), so just deprecate it.
edited accordingly, and rebased. |
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
e.g.
plot([1, 2], ls=(None, (4, 4)))
which was previously a synonymfor
plot([1, 2], ls=(0, (4, 4)))
which means "dash-pattern of4pt-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