Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Remove test_spy from test_datetime.py#27392
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
data = np.random.rand(10, 10) | ||
data[data < 0.9] = 0 | ||
fig, ax = plt.subplots() | ||
sp = ax.spy(data) | ||
ax.set_title('Spy Plot Test') | ||
ax.set_xlabel('Column Index') | ||
ax.set_ylabel('Row Index') | ||
assert sp is not None, "Failed to create spy plot" | ||
plt.close(fig) |
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.
This does not use datetime
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.
Understood, I have redone it with datetime functionality.
I do not think that Therefore, I think the course of action for this method in particular is to simply remove the test template |
Ok, sounds good I can remove the test. |
QuLogic commentedDec 1, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks@rawwash! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again. Note that I squash merged this PR, as there was no need for the separate commits. |
Uh oh!
There was an error while loading.Please reload this page.
PR summary
Removing the test_spy for datetime, since does not make sense for unitful data. Spy is related to plotting at array indices, and provides no way of setting the x and y values to non-integer data.
Therefore, this PR aims to remove test_spy.
PR checklist