Skip to content

Cleanup and document _plot_args() #19278

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
merged 1 commit into from
Jan 12, 2021
Merged

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Jan 11, 2021

PR Summary

@timhoffm timhoffm added this to the v3.4.0 milestone Jan 11, 2021
@timhoffm timhoffm force-pushed the clean-_plot_args branch 2 times, most recently from f7aa29d to 2ba1c58 Compare January 11, 2021 22:10
@timhoffm
Copy link
Member Author

Test failure is unredated (segfault in PyQt).

@@ -417,16 +458,16 @@ def _plot_args(self, tup, kwargs, return_kwargs=False):
raise ValueError("x, y, and format string must not be None")
Copy link
Member

Choose a reason for hiding this comment

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

This would never have checked whether fmt is None, because of the first if, is it not?

Copy link
Member Author

Choose a reason for hiding this comment

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

For (x, y, None), you ended up with the "third arg must be a format string" error. But for (y, None) this check triggers.

Copy link
Member

Choose a reason for hiding this comment

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

Ah yes, because the length checks are different.

@QuLogic QuLogic merged commit 325fac9 into matplotlib:master Jan 12, 2021
@timhoffm timhoffm deleted the clean-_plot_args branch January 12, 2021 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants