Fix GROUP plot x-range and y-scaling persistence across refinement cyles #285
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@brian I spent a few hours working with the TOF groups and found quite a few things, all relating to the powder pattern display. These really reflect my workflow and may not be ideal for everyone, but they made more sense to me. I just naturally found myself changing units and zooming/unzooming and found issues scaling when doing that.
I didn't edit a single line of code! This was all done by AI with me then testing and prompting it. It also wrote the PR summary below. I'm not sure if this should be considered a real PR that you merge (?) but it's a good way for you to see what I (what it) did in the diff.
I really like how it displays now :)
Malcolm
------------------- AI summary -------------------------
Fixes for histogram GROUP plot display when using shared X-axes in Q/d-space:
Preserve x-units (Q/d) across refinement cycles
Preserve zoomed x-range across refinement cycles
Convert x-range when switching between Q and d units
Fix y-axis scaling to show all visible data when zoomed
Add reset functionality
Fix x-label to show Q/d units for GROUP plottype