-
-
Notifications
You must be signed in to change notification settings - Fork 7.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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
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. |
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