Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/scanpy/plotting/_tools/scatterplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ def embedding( # noqa: PLR0912, PLR0913, PLR0915
):
size = np.array(size, dtype=float)
else:
size = 120000 / adata.shape[0]
# if the basis has NaNs, ignore the corresponding cells for size calcluation
size = 120000 / (~np.isnan(basis_values).any(axis=1)).sum()

##########
# Layout #
Expand Down
Loading