Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Scatter and Spatial plots #294

Merged
merged 4 commits into from
Apr 25, 2024
Merged

Improve Scatter and Spatial plots #294

merged 4 commits into from
Apr 25, 2024

Conversation

yihming
Copy link
Member

@yihming yihming commented Apr 24, 2024

For scatter function:

  • Add one new parameter aspect. Default is auto to enforce square plots; set to equal for the actual y to x axis ratio.

For spatial function:

  • Now accepts non-Visium data, which may not have spatial images stored in data.img field.
  • Add parameter aspect. Default is equal.
  • Add parameter margin_percent to set the image margin to the 4 sides.
  • Add parameters restrictions, show_background and palettes.
  • Add parameter y_flip with default True. Set to False if the spatial y-coordinates start from bottom.

In addition, when plotting Visium data spatially with no image background:

  • Set resolution=None.
  • Set y_flip=True.

@yihming yihming merged commit 8eef3c6 into master Apr 25, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant