Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

nidaa-7
Copy link
Contributor

@nidaa-7 nidaa-7 commented Dec 4, 2023

PR summary

Added code for test_pcolormesh in test_datetime.py as requested in #26864

(old commits in this branch have already been merged #27401, only new additions are shown - the test_pcolormesh test)

Image of the plot:
plot

PR checklist

Comment on lines +465 to +466
x_timestamps = [date.timestamp() for date in x_dates]
y_timestamps = [date.timestamp() for date in y_dates]
Copy link
Member

Choose a reason for hiding this comment

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

I would avoid using the timestamp for the non-date data, as it is a number that looks like it should be interpreted as a data (and thus made me do a doubletake when I saw the image)

Perhaps just do e.g. np.linspace(0, 10, x_dates.size) or something similar

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.

4 participants