Skip to content

Releases: scverse/spatialdata-plot

v0.3.4

11 May 21:01
53abe71

Choose a tag to compare

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

08 Apr 08:47
f7a0f14

Choose a tag to compare

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 frameon parameter and added deprecation warning for fig in show() by @timtreis in #573
  • Add gene_symbols parameter to render_shapes, render_points, render_labels by @timtreis in #578
  • Add make_palette and make_palette_from_data for palette generation by @timtreis in #581
  • Add channels_as_legend to 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_like by @timtreis in #584

Fixed

  • Fix datashader ignoring na_color transparency 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_transparent with 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

30 Mar 09:31
1f10b21

Choose a tag to compare

What's Changed

Fixed

  • Fix render_shapes losing transformation after groups filtering by @timtreis in #564
  • Fix RGBA images rendered with categorical coloring by @timtreis in #563

Full Changelog: v0.3.1...v0.3.2

v0.3.1

27 Mar 14:10
6b2c484

Choose a tag to compare

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

23 Mar 23:26
edca5a5

Choose a tag to compare

What's Changed

Added

Changed

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

30 Jan 13:02
2fd2aea

Choose a tag to compare

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_shapes by @timtreis in #512

Fixed

  • Enabled rendering of shapes with multiple holes by @MeyerBender in #506
  • When using render_points() with datashader, points can now be colored by adata.obs by @timtreis in #511
  • render_labels and render_shapes now 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

Full Changelog: v0.2.13...v0.2.14

v0.2.13

30 Oct 13:43
07e0f0f

Choose a tag to compare

What's Changed

Added

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_name and color are 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

10 Sep 16:28
e770345

Choose a tag to compare

What's Changed

Fixed

New Contributors

Full Changelog: v0.2.11...v0.2.12

v0.2.11

15 Aug 21:49
788eb22

Choose a tag to compare

What's Changed

Fixed

New Contributors

Full Changelog: v0.2.10...v0.2.11

v0.2.10

21 Apr 18:57
c348a44

Choose a tag to compare

What's Changed

Changed

Fixed

New Contributors

Full Changelog: v0.2.9...v0.2.10