Skip to content

Add ability to create waterfall plots#1813

Merged
psavery merged 4 commits intomasterfrom
waterfall-plot
Apr 9, 2025
Merged

Add ability to create waterfall plots#1813
psavery merged 4 commits intomasterfrom
waterfall-plot

Conversation

@psavery
Copy link
Collaborator

@psavery psavery commented Mar 20, 2025

If the loaded data is an imageseries with 2 to 10 frames per detector, a new button appears in the polar view settings named "Waterfall Plot".

If clicked, an azimuthal lineout is computed for every frame in the imageseries, and the results are displayed in an interactive waterfall plot.

Since the azimuthal lineout intensities are arbitrarily scaled and offset, the plots can be vertically stacked on top of one another with some spacing between. Clicking and dragging allows one to move a plot up/down. Shift-clicking and dragging also allows the plot to move left/right (which is typically not advised since two theta should not change). Using the mouse wheel while hovering over a lineout causes that lineout to scale up/down in relative intensity.

In summary, this allows for easy comparison of the different azimuthal lineouts for each frame in the imageseries.

image

psavery added 3 commits April 9, 2025 12:59
If the loaded data is an imageseries with 2 to 10 frames
per detector, a new button appears in the polar view settings
named "Waterfall Plot".

If clicked, an azimuthal lineout is computed for every frame in
the imageseries, and the results are displayed in an interactive
waterfall plot.

Since the azimuthal lineout intensities are arbitrarily scaled and
offset, the plots can be vertically stacked on top of one another
with some spacing between. Clicking and dragging allows one to move
a plot up/down. Shift-clicking and dragging also allows the plot
to move left/right (which is typically not advised since two theta
should not change). Using the mouse wheel while hovering over a
lineout causes that lineout to scale up/down in relative intensity.

In summary, this allows for easy comparison of the different
azimuthal lineouts for each frame in the imageseries.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Mac does not allow us to update the progress bar from a thread that
is not the GUI thread.

Use a queued connection to ensure it is updated from the GUI thread.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Copy link
Member

@saransh13 saransh13 left a comment

Choose a reason for hiding this comment

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

LGTM. Ready to merge!

We might want to use it for MEC data that has ~15 frames...

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
@psavery psavery merged commit 84edcd9 into master Apr 9, 2025
9 checks passed
@psavery psavery deleted the waterfall-plot branch April 9, 2025 18:05
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.

2 participants