Skip to content

Conversation

timtreis
Copy link
Member

No description provided.

@timtreis timtreis linked an issue Sep 23, 2025 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Sep 24, 2025

Codecov Report

❌ Patch coverage is 70.14925% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.38%. Comparing base (fd11c33) to head (9086821).

Files with missing lines Patch % Lines
src/spatialdata_plot/pl/utils.py 68.75% 20 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #492      +/-   ##
==========================================
- Coverage   83.89%   83.38%   -0.51%     
==========================================
  Files           8        8              
  Lines        1819     1884      +65     
==========================================
+ Hits         1526     1571      +45     
- Misses        293      313      +20     
Files with missing lines Coverage Δ
src/spatialdata_plot/pl/basic.py 89.42% <100.00%> (+0.10%) ⬆️
src/spatialdata_plot/pl/utils.py 77.40% <68.75%> (-0.55%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@timtreis timtreis linked an issue Sep 24, 2025 that may be closed by this pull request
@timtreis timtreis added enhancement New feature or request labels 🏷️ Anything related to Labels shapes 🫧 Anything related to Shapes release-fixed labels Sep 24, 2025
@timtreis timtreis self-assigned this Sep 24, 2025
Copy link
Collaborator

@Sonja-Stockhaus Sonja-Stockhaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool feature :)

sdata_blobs["other_table"].obs["category"] = sdata_blobs["other_table"].obs["category"].astype("category")
sdata_blobs["other_table"].uns["category_colors"] = ["#800080", "#008000", "#FFFF00"] # purple, green ,yellow

sdata_blobs.pl.render_labels("blobs_labels", color="category").pl.show()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct me if I'm wrong but shouldn't this all be about shapes and not plotting the labels again?


# Validate na_color format
if "#" not in str(na_color):
logger.warning("Expected `na_color` to be a hex color, converting...")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, do we really expect that the user passes a hex?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request labels 🏷️ Anything related to Labels release-fixed shapes 🫧 Anything related to Shapes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plot categorical color when colors are provided via .uns
3 participants