Skip to content
New issue

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

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

Already on GitHub? # to your account

ENH: Update X-Axis from QDateTimeEdits #17

Merged
merged 6 commits into from
May 13, 2024

Conversation

zdomke
Copy link
Collaborator

@zdomke zdomke commented May 6, 2024

This PR gives functionality to the QDateTimeEdits in the Axes tab of the Archive Viewer:

The values in the QDateTimeEdits will be updated to reflect changes to the plot's X-Axis. Changing the values in these widgets also makes the expected change to the plot's X-Axis.

Caveats:

  • If the user is editing a QDateTimeEdit's value, then it will not reflect changes to the X-Axis. This would be disruptive and prevent the user from setting the desired range value.
  • If the left timestamp is larger than the right timestamp, then the smaller value is set as the X-Axis range "minimum", regardless of being set in the "maximum" QDateTimeEdit. And vice versa.

@zdomke zdomke changed the title Update X-Axis from QDateTimeEdits ENH: Update X-Axis from QDateTimeEdits May 6, 2024
@YektaY YektaY merged commit cbe3b46 into slaclab:main May 13, 2024
0 of 7 checks passed
@zdomke zdomke mentioned this pull request May 13, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants