Skip to content

Show units without dimension names in xyplot - #622

Open
CAOShurong wants to merge 1 commit into
scipp:mainfrom
CAOShurong:fix-xyplot-dimension-labels
Open

CAOShurong wants to merge 1 commit into
scipp:mainfrom
CAOShurong:fix-xyplot-dimension-labels

Conversation

@CAOShurong

Copy link
Copy Markdown

Fixes #616.

Two variables can share a dimension while representing different quantities. When plotting temperature against time in reverse order, the horizontal axis could still carry their shared dimension name.

Keep the units on both axes by default and use xlabel and ylabel for explicit names. The regression tests cover both argument orders, absent units, and explicit labels in the static and interactive backends.

Tested all 1,403 tests against the installed wheel.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bad axes labels when swapping x with y in xyplot

1 participant