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

Let collections return linewidths "as is", without cycling.#26043

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

Open
anntzer wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
fromanntzer:ubls

Conversation

anntzer
Copy link
Contributor

Previously, collections would return a "cycled" version of linewidths which is internally used to scale dashes (this scaling needs to be done at property setting time, because of the interaction with styles).

While it makes sense to store the cycled scaled dashes, there's no need to also store the cycled linewidths or pass that to the backend code -- directly using the uncycled linewidths seems simpler. This also makes collection.get_linewidths() return something much closer to whatever was passed in -- see the test change in test_lslw_bcast.

Also, "broadcasting" has a technical meaning in numpy; it's not the same thing as cycling.

PR summary

PR checklist

Previously, collections would return a "cycled" version of linewidthswhich is internally used to scale dashes (this scaling needs to be doneat property setting time, because of the interaction with styles).While it makes sense to store the cycled scaled dashes, there's no needto also store the cycled linewidths or pass that to the backend code --directly using the uncycled linewidths seems simpler.  This also makescollection.get_linewidths() return something much closer to whatever waspassed in -- see the test change in test_lslw_bcast.
@oscargus
Copy link
Member

If we are to change the return values of these things, I'd like to chip in#23056 I foresee a major rebase effort if this goes in before (although I may be wrong).

@anntzer
Copy link
ContributorAuthor

I don't really mind either way, though I'd say the change here (making get_linewidths() return something closer to what was passed in) is more useful than the change in#23056 (which makes get_linestyle() return something different from what was passed in, if I understand it correctly). (Notwithstanding the other benefits of#23056.)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@anntzer@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp