Skip to content

Fix Axis auto-naming and properly raise invalid label/name usage#196

Open
vijayalakshmipokala wants to merge 2 commits intomatthiaskoenig:mainfrom
vijayalakshmipokala:improve-docs-clean
Open

Fix Axis auto-naming and properly raise invalid label/name usage#196
vijayalakshmipokala wants to merge 2 commits intomatthiaskoenig:mainfrom
vijayalakshmipokala:improve-docs-clean

Conversation

@vijayalakshmipokala
Copy link

This PR fixes Axis behavior when label/unit are modified.

  • Raises ValueError when both label and name are provided
  • Automatically updates axis name when label or unit changes
  • Preserves manually set axis names

Example:
Axis(label="Time", unit="day")
→ name = "Time [day]"
unit = "week"
→ name = "Time [week]"

Fixes #167

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.

1 participant