scverse / scverse/scanpy

Rasterisation/vector_friendly not always working

Open
#2,005 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.6k
Forks
779
Avg merge
1d 4h
Merged PRs (30d)
27

Description

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of scanpy.
  • (optional) I have confirmed this bug exists on the master branch of scanpy.

I tried setting sc._settings.settings._vector_friendly=True
This rasterises some of my figures, but not as expected.

UMAPs: Rasterized when saved, but if I save figures they are no longer rasterized in the notebook when shown (leading to large notebook). If I do not save the figure then the notebook stays small.
Scatterplots: Not saved rasterized. Not sure about the notebook.

Maybe someone should also check other plots, such as violinplots with stripplots.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with sc._settings.settings._vector_friendly and reproduce the reported behavior for UMAPs and scatterplots when saving figures and displaying them in a notebook. Compare rasterization in saved output with notebook output, then check whether violinplots with stripplots show the same issue; done means the affected plots rasterize consistently in both contexts.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.