Skip to content

ENH: New Curves Are Added to Axes Based on Units#198

Merged
zdomke merged 8 commits into
mainfrom
zdomke/unit-axes
Sep 15, 2025
Merged

ENH: New Curves Are Added to Axes Based on Units#198
zdomke merged 8 commits into
mainfrom
zdomke/unit-axes

Conversation

@zdomke

@zdomke zdomke commented Sep 8, 2025

Copy link
Copy Markdown
Collaborator

Description

When a user creates a new curve, it is added to an axis based on the channels units (if the .EGU field is populated). If an axis for that unit does not exist, a new one will be created. The axes will have the unit as the name (e.g. '%', 'bara', 'deg_F').

If a new curve does not have units (formula, no .EGU field, no live data) it will be added to a unitless axis named 'Axis 1' or something similar.

Motivation

This groups like curves onto the same axes, giving the data context. This feature also existed before the UI was redesigned and it'd be nice to bring it back.
Closes SWAPPS-248

Screenshots

Screenshot 2025-09-10 at 10 37 15

Pre-merge checklist

  • Code works interactively
  • Code contains descriptive docstrings
  • New/changed functions and methods are covered in the test suite where possible
  • Test suite passes locally
  • Test suite passes on GitHub Actions

@zdomke zdomke self-assigned this Sep 8, 2025
@zdomke zdomke added the enhancement New feature or request label Sep 8, 2025
@zdomke zdomke requested a review from a team September 10, 2025 21:01
@zdomke zdomke marked this pull request as ready for review September 10, 2025 21:02
@phys-cgarnier

Copy link
Copy Markdown
Collaborator

looks good to me

@zdomke zdomke merged commit 3623b3f into main Sep 15, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants