You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works well for smaller datasets but not larger datasets, such as http://localhost:3000/?dataset=salcher-2022&theme=light2 where the new larger point size makes it difficult to see the patterns (e.g., areas with a mix of yellow and blue cells when zoomed-out)
We may want the increased point size to also depend on the size of the dataset (maybe we can use the log of the number of cells?). (The getPointOpacity function uses numCells as a parameter, but it seems the current point size logic does not depend on numCells.)
I've adjusted the implementation so that point size scales appropriately between 1,000 cells or less -> 100,000 cells or more; i.e., at 1,000 cells or less, it uses an adjusted 0.005 value, at 500,000 cells or above it falls back to the previous base point size of 0.0005, and between those values it interpolates the log values to determine the appropriate size.
The reason will be displayed to describe this comment to others. Learn more.
Good call! I've revised the helper function accordingly. I'd still prefer to keep it as a separate function for ease of testing (since the additional re-scaling done by getPointSizeDevicePixels made writing useful tests for this functionality trickier than anticipated)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2346
Background
It has been expressed that the default point size on the scatterplot is very small/difficult to work with.
This PR increases the baseline size of the automatically calculated points without affecting the other calculations.
Change List
Checklist
Screenshots
Default

codeluppi-2018scatterplots (in expanded view) on production:Default

codeluppi-2018scatterplots (in expanded view) with this change: