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

Fix marker validator with cycler (allow mix of classes) #27613

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
QuLogic merged 1 commit into matplotlib:main from faisal-fawad:bugfix-for-issue-27596
Jan 10, 2024

Conversation

Copy link
Contributor

@faisal-fawad faisal-fawad commented Jan 8, 2024
edited
Loading

PR summary

Closes #27596. Added basic support for combination of strings and integers to satisfy expected behavior.

PR checklist

Copy link
Member

@story645 story645 left a comment

Choose a reason for hiding this comment

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

awesome, can you please add a test?

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

Copy link
Member

ksunden commented Jan 9, 2024

Please add the following to the rcsetup.pyi file (Should be in roughly the same order as the .py file):

def validate_marker(s: Any) -> int | string: ...
def validate_markerlist(s: Any) -> list[int | string]: ...
faisal-fawad reacted with thumbs up emoji

@tacaswell tacaswell added this to the v3.9.0 milestone Jan 9, 2024
Copy link
Member

@ksunden ksunden left a comment

Choose a reason for hiding this comment

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

test failures unrelated

Copy link
Member

@faisal-fawad we typically prefer changes be squashed down to a few commits - would you have interest in squashing down to 1 commit or would you like us to do so?

Copy link
Contributor Author

@story645 If you could handle it for this PR that would be preferred.

If you don't mind me asking, how could I squash the commits myself for future PRs?

Copy link
Member

faisal-fawad reacted with heart emoji

Copy link
Member

QuLogic commented Jan 10, 2024

There are a few extra changes here; make sure you use a force push after rebasing.

faisal-fawad and story645 reacted with thumbs up emoji

Add test
Add stubs
Private functions & updated test
Update test
Co-authored-by: Kyle Sunden <git@ksunden.space>
Add test
Private functions & updated test
Copy link
Member

QuLogic commented Jan 10, 2024

Thanks @faisal-fawad! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again.

faisal-fawad reacted with heart emoji

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

@github-actions github-actions[bot] github-actions[bot] left review comments

@QuLogic QuLogic QuLogic approved these changes

@story645 story645 story645 approved these changes

@ksunden ksunden ksunden approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.9.0
Development

Successfully merging this pull request may close these issues.

[Bug]: Markers with numeric name like CARETLEFT cannot be specified using a cycler

AltStyle によって変換されたページ (->オリジナル) /