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

FIX: Switching Y Axis orientation was not properly updating #1100

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

aksharsarvesh
Copy link
Contributor

In the axis table model, when switching an axis from left to right orientation, it was not actually moving the axis. There is a function in multi_plot_axis.py called "rebuildLayout" that moves the axes to where they need to be in the layout, which is one of the added lines.

The axis would then be physically moved, but it would also require being flipped around such that the label would be on the right side of the axis, which wasn't being done either. Prompting the axis to show causes it to redraw properly, so now by switching orientation of a y-axis from left to right (or vice versa) will correctly and immediately update the axis to the opposite side.

@aksharsarvesh aksharsarvesh marked this pull request as ready for review August 5, 2024 18:59
@aksharsarvesh aksharsarvesh marked this pull request as draft August 5, 2024 22:36
@aksharsarvesh aksharsarvesh marked this pull request as ready for review August 5, 2024 22:46
Copy link
Collaborator

@nstelter-slac nstelter-slac left a comment

Choose a reason for hiding this comment

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

make sense to me!

@nstelter-slac nstelter-slac merged commit 8b27429 into slaclab:master Aug 19, 2024
19 checks passed
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.

3 participants