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: ArchiveTimePlot Fetch Data on X-Axis Change #1172

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

zdomke
Copy link
Contributor

@zdomke zdomke commented Feb 24, 2025

This change prompts the ArchiveTimePlot to get data from the Archiver Appliance every time the x-axis' range changes.

Previously, archive data was only fetched when the user showed a section of the plot that had no data. With this set up, zooming out will fetch a optimized data (averaged w/ min/max error bars), but zooming back in would still optimized data. This results in the "resolution" looking wrong.

Now zooming in on a section will get the data for the time range shown on the plot. This will result in showing the correct "resolution" at all times.

@zdomke
Copy link
Contributor Author

zdomke commented Feb 24, 2025

As I'm reading back through my code, I'm wondering if this should be an optional change. Should add a parameter to the ArchiveTimePlot constructor for getting data like this.
Some users may prioritize plot speed over curve resolution, especially if their archiver appliance is slow.

@zdomke
Copy link
Contributor Author

zdomke commented Feb 27, 2025

Made the changes optional so that it can be enabled/disabled as required.
Split PyDMArchiverTimePlot.updateXAxis into multiple functions as it was getting big and messy.
Removed the update_immediately parameter from PyDMArchiverTimePlot.updateXAxis as it seemed unused.

@zdomke zdomke marked this pull request as ready for review February 27, 2025 01:56
@YektaY YektaY linked an issue Mar 4, 2025 that may be closed by this pull request
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.

ENH: PyDMArchiverTimePlot should fetch archive data on zoom in
1 participant