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

ENH: Collection.set_paths#26342

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
greglucas merged 1 commit intomatplotlib:mainfromrcomer:cs-set_paths
Jul 19, 2023
Merged

Conversation

@rcomer
Copy link
Member

PR summary

Closes#26340

I didn't add a changenote because I think this is covered by "Setting properties on the ContourSet can now usually be done using standard collection setters"
https://matplotlib.org/devdocs/api/next_api_changes/behavior/25247-AL.html

PR checklist

@rcomer
Copy link
MemberAuthor

I have also tested this for the Cartopy case.

@rcomerrcomer added this to thev3.8.0 milestoneJul 18, 2023
Comment on lines 980 to 982
defset_paths(self,paths):
self._paths=paths
self.stale=True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I agree with@anntzer's comment#26340 (comment)
I think we could just add this change toCollection.set_paths(paths) method definition instead so others can also subclass and take advantage of it (could remove the method definition fromPathCollection then too I think.

jklymak reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Ah sorry, I misread@anntzer's comment. I've now updatedCollection.set_paths. I left my test in becauseset_paths does not appear intest_collection.py. I assume theContourSet is as good a place as any to make sure this code path is covered?

@rcomerrcomer changed the titleENH: ContourSet.set_pathsENH: Collection.set_pathsJul 19, 2023
@greglucasgreglucas merged commit17412bf intomatplotlib:mainJul 19, 2023
@rcomerrcomer deleted the cs-set_paths branchJuly 19, 2023 13:47
@rcomerrcomer mentioned this pull requestOct 16, 2025
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jklymakjklymakjklymak approved these changes

@greglucasgreglucasgreglucas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

v3.8.0

Development

Successfully merging this pull request may close these issues.

[ENH]: ContourSet.set_paths

3 participants

@rcomer@jklymak@greglucas

[8]ページ先頭

©2009-2025 Movatter.jp