Skip to content

Allow transposing axes in 2d plots#150

Merged
henrikjacobsenfys merged 3 commits intodevelopfrom
allow-transpose-plot
Apr 7, 2026
Merged

Allow transposing axes in 2d plots#150
henrikjacobsenfys merged 3 commits intodevelopfrom
allow-transpose-plot

Conversation

@henrikjacobsenfys
Copy link
Copy Markdown
Member

No description provided.

@henrikjacobsenfys henrikjacobsenfys added [scope] enhancement Adds/improves features (major.MINOR.patch) [priority] medium Normal/default priority labels Apr 7, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.85%. Comparing base (6d1b54b) to head (51958c2).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #150   +/-   ##
========================================
  Coverage    97.84%   97.85%           
========================================
  Files           38       38           
  Lines         2599     2607    +8     
  Branches       449      452    +3     
========================================
+ Hits          2543     2551    +8     
  Misses          32       32           
  Partials        24       24           
Flag Coverage Δ
integration 48.79% <25.00%> (-0.12%) ⬇️
unittests 97.85% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@rozyczko rozyczko left a comment

Choose a reason for hiding this comment

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

Nothing major, some minor issues raised for consideration.

If slicer or transpose_axes are not True or False.
"""

if self._binned_data is None:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you should probably query self.binned_data, since you're wrapping it earlier.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this should presumably also be self.binned_data for consistency

Comment on lines +377 to +378
slicer: bool = False,
transpose_axes: bool = False,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does this mean that transpose_axes is silently ignored when slicer=True? Maybe add a docstring in this case,

"Only applies when slicer=False"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, it only applies to 2d plots without the slicer. When I add more coordinataes to the data I may have to revisit this, since a 2d slicer is possible. But I'll cross that bridge when I get to it

Comment on lines 380 to 381
) -> None:
"""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nope. You are returning fig.
Since this can be either plopp's figure or your own, maybe use Any?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's always a plopp figure, just sometimes a slicer. It seems they're the same type, so easy to type hint :)

@henrikjacobsenfys henrikjacobsenfys merged commit 3dd8910 into develop Apr 7, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[priority] medium Normal/default priority [scope] enhancement Adds/improves features (major.MINOR.patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants