-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Parameterize test_fill_between and test_fill_betweenx #8729
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
Conversation
(np.arange(0.0, 2, 0.02), 3, np.zeros((2, 2))) | ||
] | ||
) | ||
def test_fill_betweenx_input(y, x1, x2): | ||
fig = plt.figure() | ||
ax = fig.add_subplot(211) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyone got any idea why this line is here? Looks pointless to me...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this is the line you meant to comment on? How else would you plot without an Axes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♂️ I thought the previous line was plt.subplots
(which I'm far too used too). Still not sure why it's called with 211
instead of 111
, but doesn't make a difference either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks, happy for this to be merged when tests pass.
lib/matplotlib/tests/test_axes.py
Outdated
(np.arange(0.0, 2, 0.02), np.zeros((2, 2)), 3), | ||
(np.arange(0.0, 2, 0.02), 3, np.zeros((2, 2))) | ||
] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add some ids
to this call; you can use the unique parts of the original functions names, probably.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing that out. Added.
lib/matplotlib/tests/test_axes.py
Outdated
(np.arange(0.0, 2, 0.02), np.zeros((2, 2)), 3), | ||
(np.arange(0.0, 2, 0.02), 3, np.zeros((2, 2))) | ||
] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And some ids
here too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Parametrize test_fill_between and test_fill_betweenx and drops plot call
fixes #8698
PR Summary
PR Checklist