Skip to content

Fill missing data with NaNs in validation plots #39

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 3 commits into from
Jun 4, 2025
Merged

Conversation

ljgray
Copy link
Contributor

@ljgray ljgray commented Mar 31, 2025

plt.imshow doesn't have a concept of missing samples along an axis. For time-sampled data, we instead have to create a regular grid and display the time-sampled data on that grid, with NaNs in place of missing samples. This fixes the issue where highlighted sources were sometimes misaligned.

Also, include date and time information in the title for each CSD.

Seems to work, although it's always possible that there are some edge cases I've missed.

@ljgray ljgray force-pushed the ljg/assorted-fixes branch from 4c8221d to 58af561 Compare June 3, 2025 20:44
@ljgray ljgray marked this pull request as ready for review June 3, 2025 20:52
@ljgray ljgray requested a review from ketiltrout June 3, 2025 20:54
@ljgray ljgray merged commit 083cc3b into main Jun 4, 2025
@ljgray ljgray deleted the ljg/assorted-fixes branch June 4, 2025 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants