Skip to content

allow for plotting using specific table (#217) #220

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

Merged
merged 17 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/test_and_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
pull_request:
branches: [main]
branches: "*"

jobs:
test:
Expand Down
706 changes: 192 additions & 514 deletions src/spatialdata_plot/pl/basic.py

Large diffs are not rendered by default.

299 changes: 144 additions & 155 deletions src/spatialdata_plot/pl/render.py

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/spatialdata_plot/pl/render_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ class ShapesRenderParams:
col_for_color: str | None = None
groups: str | Sequence[str] | None = None
contour_px: int | None = None
layer: str | None = None
palette: ListedColormap | str | None = None
outline_alpha: float = 1.0
fill_alpha: float = 0.3
scale: float = 1.0
transfunc: Callable[[float], float] | None = None
element_table_mapping: dict[str, set[str] | str] | str | list[str] | None = None


@dataclass
Expand All @@ -96,6 +96,7 @@ class PointsRenderParams:
alpha: float = 1.0
size: float = 1.0
transfunc: Callable[[float], float] | None = None
element_table_mapping: dict[str, set[str] | str] | str | list[str] | None = None


@dataclass
Expand All @@ -117,13 +118,13 @@ class LabelsRenderParams:

cmap_params: CmapParams
elements: str | Sequence[str] | None = None
color: str | None = None
color: list[str | None] | str | None = None
groups: str | Sequence[str] | None = None
contour_px: int | None = None
outline: bool = False
layer: str | None = None
palette: ListedColormap | str | None = None
outline_alpha: float = 1.0
fill_alpha: float = 0.4
transfunc: Callable[[float], float] | None = None
scale: str | list[str] | None = None
element_table_mapping: dict[str, set[str] | str] | str | list[str] | None = None
Loading