Releases: scverse/spatialdata-plot
Releases · scverse/spatialdata-plot
v0.3.4
What's Changed
Added
- Support channels_as_legend for single-channel and sequential renders by @timtreis in #641
- Wire scalebar_dx/scalebar_units into pl.show() by @timtreis in #648
- Add docs gallery via spatialdata-plot-notebooks submodule by @asarigun and @timtreis in #656
- Add Visium card to Examples in gallery by @timtreis in #657
- Add render_graph for spatial connectivity visualization by @timtreis in #592
Changed
- Warn and render na_color when color column is all-NaN by @timtreis in #637
- Clarify na_color docstring for groups= filtering behavior by @timtreis in #640
- Reject contour_px=1 in render_labels by @timtreis in #645
- Accept list and ndarray for show(figsize=...) by @timtreis in #646
- Drop vmin/vmax kwargs across all render functions by @timtreis in #652
- Raise ValueError on invalid scale in render_images by @timtreis in #654
- Infer fig from ax in show() instead of requiring it by @timtreis in #655
Fixed
- Fix double artist registration in render_labels and render_points by @timtreis in #634
- Fix inverted transfunc condition in render_shapes; add transfunc to render_labels by @timtreis in #635
- Render constant-value channels as mid-grey with a warning by @timtreis in #636
- Fix multiscale resolution selection picking wrong scale level by @timtreis in #591
- Fix O(n^2) pd.concat in _get_cs_contents by @timtreis in #642
- Fix double .compute() when render_points color= is a native column by @timtreis in #643
- Fix render_labels silently accepting fill_alpha=0 and outline_alpha=0 by @timtreis in #644
- Fix fill_alpha and outline_alpha being ignored in datashader render path by @timtreis in #647
- Reject legend_loc='on data' loudly in pl.show() by @timtreis in #649
- Reject float-dtype labels with clear error in render_labels by @timtreis in #650
- Replace assert with direct call for table validation by @timtreis in #651
- Fix misleading cmap errors when norm/palette interact by @timtreis in #653
Full Changelog: v0.3.3...v0.3.4
v0.3.3
What's Changed
Added
- Add transfunc and grayscale to render_images by @timtreis in #567
- Add per-channel norm support for render_images by @timtreis in #572
- Implement
frameonparameter and added deprecation warning forfigin show() by @timtreis in #573 - Add
gene_symbolsparameter torender_shapes,render_points,render_labelsby @timtreis in #578 - Add
make_paletteandmake_palette_from_datafor palette generation by @timtreis in #581 - Add
channels_as_legendto render_images by @timtreis in #576
Changed
- Skip plt.show() when user supplies ax= to allow multi-call layering by @timtreis in #569
- Skip table fallback when coloring by element DataFrame column by @timtreis in #571
- Reject all matplotlib shorthand color notations in
_is_color_likeby @timtreis in #584
Fixed
- Fix datashader ignoring
na_colortransparency for continuous data by @timtreis in #566 - Fix categorical colors wrongly assigned to points with non-sequential index by @timtreis in #570
- Fix user figure DPI silently overridden by pl.show() by @timtreis in #575
- Fix
set_zero_in_cmap_to_transparentwith datashader rendering by @timtreis in #577 - Fix axes mismatch when elements have multi-CS transformations by @timtreis in #580
- Fix docstrings and remove dead code across public API by @timtreis in #583
Full Changelog: v0.3.2...v0.3.3
v0.3.2
v0.3.1
What's Changed
Fixed
- Fix render_points datashader pipeline: dead code, silent failures, and fragile alignment by @timtreis in #560
- Speed up datashader rendering of points by @timtreis in #557
- Fix render_shapes crash when obs index name conflicts with column by @timtreis in #558
- Fix shapes datashader colorbar exceeding data range by @timtreis in #561
Full Changelog: v0.3.0...v0.3.1
v0.3.0
What's Changed
Added
- Include function name in log messages by @timtreis in #536
- Add
showparameter to.pl.show()to controlplt.show()behavior by @timtreis in #537 - Sync with cookiecutter-scverse v0.7.0 by @timtreis in #548
- Feature/outline color for labels by @MeyerBender in #525
- Warn when groups values don't match color categories by @timtreis in #556
Changed
- Enhancement/reduce verbosity by @MeyerBender in #524
- uniform color handling between labels and points/shapes by @Sonja-Stockhaus in #497
groupsnow hides NAs unlessna_coloris specified by @timtreis in #549
Fixed
- Preserve Categorical dtype for color_vector with non-unique colors by @timtreis in #542
- Fix datashader failing with single-category Categorical by @timtreis in #539
- Fix outline linewidth mismatch between matplotlib and datashader by @timtreis in #543
- Fix datashader elements invisible with non-square aspect ratios by @timtreis in #544
- Fix categorical color mapping across coordinate systems by @timtreis in #547
- nan handling for continuous and categorical coloring by @Sonja-Stockhaus in #427
- Fix datashader fill_alpha applied twice by @timtreis in #552
- Fix scale parameter for polygons with datashader by @timtreis in #555
Full Changelog: v0.2.14...v0.3.0
v0.2.14
What's Changed
Added
Changed
- Made most plotting parameter keyword-only by @timtreis in #510
- Now raising an error if color or table doesn't exist by @timtreis in #515
- Safeguard against invalid user input in
render_shapesby @timtreis in #512
Fixed
- Enabled rendering of shapes with multiple holes by @MeyerBender in #506
- When using
render_points()withdatashader, points can now be colored byadata.obsby @timtreis in #511 render_labelsandrender_shapesnow scan for and respect xyz_colors in adata.uns by @timtreis in #492- Polygons with holes are now rendered correctly by @timtreis in #513
- Fix MultiPolygon patch creation for inverted inner rings by @timtreis in #517
- Improve contribution guide for macos testing (docker) by @LucaMarconato in #531
- Multi-channel images now correctly normalised, even when uint16 by @timtreis in #520
New Contributors
- @MeyerBender made their first contribution in #506
Full Changelog: v0.2.13...v0.2.14
v0.2.13
What's Changed
Added
- make outline behavior more similar to squidpy by @Sonja-Stockhaus in #472
- add
shapesparameter to render shapes as hex/circle/square by @Sonja-Stockhaus in #474 - Added option
visium_hexwith which Visium spots are rendered as continous hexes by @timtreis in #501
Changed
- zarr v3 compatibility changes by @melonora in #482
- Update CI/CD to use pixi and parallel testing; also moving to Python 3.11-3.13 by @timtreis in #481
- Simplified affine matrix calculation for datashader by @timtreis in #491
Fixed
- Add warning if
table_nameandcolorare specified but the table doesn't annotate the element by @timtreis in #490 - Fix NaN handling and transparency in shape rendering by @timtreis in #503
- Removed hardcoded sdata["table"] access by @LucaMarconato in #504
Full Changelog: v0.2.12...v0.2.13
v0.2.12
What's Changed
Fixed
- render_shapes now respects palette and group by @sophiamaedler in #465
- fix image rendering (clipping warning) by @Sonja-Stockhaus in #471
New Contributors
- @sophiamaedler made their first contribution in #465
Full Changelog: v0.2.11...v0.2.12
v0.2.11
What's Changed
Fixed
- render_shapes now respects the cmap parameter by @timtreis in #436
- Fix plot continous column render labels by @ArneDefauw in #444
New Contributors
- @ArneDefauw made their first contribution in #444
Full Changelog: v0.2.10...v0.2.11
v0.2.10
What's Changed
Changed
Fixed
- Fix norm behavior, add tests by @Sonja-Stockhaus in #419
- Fix unused cmap in render_points by @melonora in #432
- Fix but
render_shapes()when coordinate system "global" not present by @melonora in #446
New Contributors
Full Changelog: v0.2.9...v0.2.10