Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Change number of pixels used by datashader #152

Merged

Conversation

anaprietonem
Copy link
Contributor

@anaprietonem anaprietonem commented Nov 20, 2024

PR to fix #150
Propose change - make the 'n_pixels' more flexible so that when using finer resolutions (like n32), 500 as n_pixels should be enough, but for hidden grid plots and coarser ones then we need to use way less, so the other condition would apply.

Note - Regarding the proposed change n_pixels = min(int(np.floor(data.shape[0] * 0.004)), 500). This has been found by testing different values, so it's fair to say that 0.04% could be better tweaked in the future if needed.

This PR also includes contributions from @mpvginde who developed the code to ensure common color map ranges
Closes #150

@anaprietonem
Copy link
Contributor Author

@anaprietonem anaprietonem self-assigned this Nov 21, 2024
sahahner
sahahner previously approved these changes Nov 21, 2024
Copy link
Member

@sahahner sahahner left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@HCookie HCookie mentioned this pull request Nov 22, 2024
HCookie
HCookie previously approved these changes Nov 22, 2024
@mchantry
Copy link
Member

Has this been tested at a few resolutions?

@anaprietonem anaprietonem dismissed stale reviews from sahahner and HCookie via 7f833ba November 26, 2024 14:55
@anaprietonem
Copy link
Contributor Author

Has this been tested at a few resolutions?

Worked with @JPXKQX on this and should be now working fine for LAM

@HCookie HCookie changed the title 150 n320 callback number of pixels used by datashader Change number of pixels used by datashader Nov 27, 2024
@HCookie HCookie merged commit 2809a81 into develop Nov 28, 2024
117 checks passed
@HCookie HCookie deleted the 150-n320-callback-number-of-pixels-used-by-datashader branch November 28, 2024 08:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

N320 callback Number of pixels used by datashader
4 participants