Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
4072683
allow for plotting using specific table
melonora Feb 18, 2024
ba4faa8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 18, 2024
72bf27d
Change into get with default return
melonora Feb 19, 2024
7d9e83f
fix issues with pp
melonora Feb 19, 2024
cd76a00
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 19, 2024
7676c72
ensure instance key coercable to int dtype
melonora Feb 19, 2024
c0ebde3
Merge branch 'multi_table' of https://github.com/melonora/spatialdata…
melonora Feb 19, 2024
45c13e0
add table keys import
melonora Feb 19, 2024
72eef3d
allow feature branches tests
melonora Feb 19, 2024
3532104
Merge branch 'main' into multi_table
melonora Feb 19, 2024
39b8003
remove table key getters
melonora Feb 20, 2024
3aafa1f
extract into function
melonora Feb 20, 2024
53fa1a7
add docstring
melonora Feb 20, 2024
3843f1a
don't create unnecessary anndata
melonora Feb 20, 2024
58fabd3
allow for label color without specified table
melonora Feb 20, 2024
8f9dc4d
refactor show param validations
melonora Feb 20, 2024
d664956
refactor show param validations
melonora Feb 21, 2024
19ecc0b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 21, 2024
de53fe2
big refactor
melonora Feb 21, 2024
bb3e5d8
remove unused render_params.layer
melonora Feb 21, 2024
f74f730
remove redundant code
melonora Feb 21, 2024
94d37d8
refactor to mapping
melonora Feb 22, 2024
882c2a9
allow later creation of mapping
melonora Feb 22, 2024
a21529d
reimplement color label
melonora Feb 22, 2024
cdaddf0
fix unused arguments
melonora Feb 23, 2024
406fb1b
change points shapes logic
melonora Feb 23, 2024
7e76133
unfixed full implementation
melonora Feb 24, 2024
cc9b404
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 24, 2024
21c05f1
fix tests
melonora Feb 24, 2024
a13361a
Merge branch 'multi_table' of https://github.com/melonora/spatialdata…
melonora Feb 24, 2024
258593c
fix tests
melonora Feb 25, 2024
fa279ae
remove duplicate checks
melonora Feb 25, 2024
3082e40
implement nested list groups palette
melonora Feb 26, 2024
47483e6
fix tests
melonora Feb 26, 2024
33e1857
fix or mistake
melonora Feb 26, 2024
59d6590
add dummy test
melonora Feb 26, 2024
40e7130
Change to warning
melonora Feb 28, 2024
caf23df
partial fix mypy
melonora Feb 28, 2024
ecc7797
add function type hints
melonora Feb 28, 2024
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
687 changes: 215 additions & 472 deletions src/spatialdata_plot/pl/basic.py

Large diffs are not rendered by default.

164 changes: 71 additions & 93 deletions src/spatialdata_plot/pl/render.py

Large diffs are not rendered by default.

5 changes: 3 additions & 2 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 @@ -121,9 +122,9 @@ class LabelsRenderParams:
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