Skip to content
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

Customize colorbar location and size based on aperture size #1592

Merged

Conversation

bhilbert4
Copy link
Collaborator

Resolves #1560

This improves the readability of the colorbar, especially for cases where the aperture is very non-square (e.g. SUBSTRIPE64). In full frame images, the colorbar has been shrunk to be the same height as the detector image. This effectively allows the image itself to be larger when displayed on the webpage.

I've tested this on all xsize/ysize ratios for all apertures across all instruments. All images look good.
I also ran generate_preview_images.py locally with no problems.

@pep8speaks
Copy link

pep8speaks commented May 23, 2024

Hello @bhilbert4, Thank you for updating !

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated at 2024-07-13 03:32:13 UTC

Copy link
Collaborator

@mfixstsci mfixstsci left a comment

Choose a reason for hiding this comment

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

Thanks @bhilbert4 this is a clever fix.

@mfixstsci mfixstsci merged commit e183ff0 into spacetelescope:develop Jul 13, 2024
11 checks passed
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.

Fix preview images where vertical colorbars on subarray thumbnails are unreadable
3 participants