Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Axis labels show which curves are on the axis #1099

Closed
wants to merge 7 commits into from

Conversation

aksharsarvesh
Copy link
Contributor

This builds on #1097, because it requires the use of the _curves attribute added to BasePlotAxisItems in that PR.

Given that each axis can have many curves on it, and you can freely move curves around, it can be confusing which curves are attached to which axes. As such, users will want to see which curves are attached to which axes.

Every time a curve is linked, unlinked, or its name changes, we are calling autoVisible to make sure the axis should or should not be shown. As a subroutine, we edit the label to include the names of the curves attached to this axis. If it is to be shown, the label will be updated; if not, it will remain hidden anyway.

@aksharsarvesh aksharsarvesh marked this pull request as ready for review August 5, 2024 23:14
@aksharsarvesh aksharsarvesh marked this pull request as draft August 21, 2024 22:09
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