question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scaling the dot size based on number of points

See original GitHub issue

It’d be really nice to decrease the dotsize when visualizing large datasets and increase it for smaller ones.

We have a simple scaling in scanpy (https://github.com/theislab/scanpy/blob/master/scanpy/plotting/_anndata.py#L227) which is 120000 / n where n is the number of cells. This leads to very big dots when dataset is very small, so you might want to limit it via min() or max().

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
liaprins-czicommented, Aug 9, 2019

Yeah I think that ^^^ would be good. It’d be confusing to have the deselected size scale up for a small dataset and end up the same size as a default dot of a large dataset.

1reaction
colinmegillcommented, Aug 8, 2019

@bkmartinjr @liaprins-czi this will need to take into consideration all three dot sizes:

  • default
  • deselected
  • hover
Read more comments on GitHub >

github_iconTop Results From Across the Web

Change the scaling in the legend for the size of dots which ...
Many have samples sizes from 10 to 50 and others are based on 500 or 1000 measurements. I would like to change the...
Read more >
Scale geom_point size to increase size based on distance ...
I want the size of the point in geom_point() to increase from 0 to 3, ... Scale geom_point size to increase size based...
Read more >
Scale-based symbol sizing—ArcGIS Pro | Documentation
The point symbol size varies linearly in size between stops. to add new stops based on the defined map scales, or click along...
Read more >
Size and scale numbers for Configuration Manager
Determine the number of site system roles and sites that you'll need to support the devices in your environment.
Read more >
qgis - Set size of points independent from map scale
In ArcGIS the size of a point feature is constant independent from the map scale. In QGIS when I zoom in the point...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found