Skip to content
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