-
Notifications
You must be signed in to change notification settings - Fork 100
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
Skyline: follow replicate in graphs #2766
base: master
Are you sure you want to change the base?
Skyline: follow replicate in graphs #2766
Conversation
…1013_follow_replicate_in_graphs
I am noticing that the executing logic https://github.com/ProteoWizard/pwiz/pull/2766/files#diff-c05006f567abb8ecca0cf14c9e7ab3abf42b632da08ecf93ef861dcd3848c016R4048-R4058 could be moved to |
I wonder if you should add a method to the class "GraphPane" (in the "ZedGraph" project) called "ScrollIntoView which takes a Rectangle (or maybe an x-coordinate range) as a parameter. |
Thanks for the initial feedback,
How does "scrolling a graph with the mouse" work? As far as I have managed, in Skyline 23.1 I can only
Is there any other mouse action that will scroll the axes? Another behaviour I discovered now in Skyline 23.1: In that light I would argue that un-zoom is not very meaningful for such cases... (I would even argue that selecting a different transition should only reset the Y axis, not the X axis; and that "undo all zoom/pan" should always reset to the full X range and a meaningful Y range for the selected data. I could potentially look into that.)
Hm, there are different places in the code that already interact with XAxis and YAxis (I'm sure I haven't found all of them yet); would your goal be to unify behaviour in all of them? |
You can scroll the graph by holding down the Ctrl key and dragging the mouse across the graph. |
Something new every day! I thought I tried that. Hm, one option could be
|
Hi, |
This PR adds functionality that forces the currently selected replicate into X axis range on the
SummaryReplicateGraphPane
s. Previously, a user could select a replicate (by ctrl-left/right or by selecting from results grid/dropdown) that is outside the current zoom range on Peak Area, Retention Time, or Mass Errors. Now, the X axis will adapt to include the selected replicate, but keeping the range (i.e., if it went from 6-10 and replicate 4 is newly selected, it will adapt to 4-8.)It works with GroupBy Replicate/Sampletype/Conc and with Order Document/Acquired Time, though only the basic case Replicate/Document has a testcase currently. It works independently from (ie. with or without) Sync Zooming. If desired, I can make it work on Sync Zooming only.
The test currently reuses the data from
MultiSelectPeakAreaGraphTest
.For my original feature request/description, see https://skyline.ms/announcements/home/support/thread.view?rowId=62047