Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
QuLogic merged 1 commit intomatplotlib:masterfromanntzer:dashoffset-none
Mar 10, 2020

Conversation

anntzer
Copy link
Contributor

@anntzeranntzer commentedDec 4, 2019
edited
Loading

PR Summary

e.g.plot([1, 2], ls=(None, (4, 4))) which was previously a synonym
forplot([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

  • Has Pytest style unit tests
  • Code isFlake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@anntzeranntzerforce-pushed thedashoffset-none branch 2 times, most recently from87e9acf to9300485CompareDecember 5, 2019 01:02
@tacaswelltacaswell added this to thev3.3.0 milestoneDec 5, 2019
@tacaswell
Copy link
Member

Could we normalizeNone as input to 0 instead?

The failures look real, but did not dig into them....

@anntzer
Copy link
ContributorAuthor

The failures are real, need to look into it.
I think the (small) cleanup to Line2D from not normalizing (allowing to remove a few checks for None) is also nice to have. Again note that this has (likely) never worked for pdf/ps/svg so I doubt there are many people who rely on it...

@anntzer
Copy link
ContributorAuthor

figured out the failure, now fixed, should be good to go.

Copy link
Member

@QuLogicQuLogic left a 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.

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.
@anntzer
Copy link
ContributorAuthor

edited accordingly, and rebased.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.3.0
Development

Successfully merging this pull request may close these issues.

format error saving eps figure using custom linestyle
4 participants
@anntzer@tacaswell@QuLogic@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp