Skip to content

Refactor microphonics plots to use shared PlotTooltip utility#198

Open
hmarts9 wants to merge 4 commits into
slaclab:mainfrom
hmarts9:refactor/use-plot-tooltip-utility
Open

Refactor microphonics plots to use shared PlotTooltip utility#198
hmarts9 wants to merge 4 commits into
slaclab:mainfrom
hmarts9:refactor/use-plot-tooltip-utility

Conversation

@hmarts9
Copy link
Copy Markdown
Contributor

@hmarts9 hmarts9 commented Jan 21, 2026

Refactors all microphonics plot classes to use the shared PlotTooltip utility instead of custom tooltip implementations.

@s-aderhold s-aderhold requested a review from a team January 21, 2026 22:21
Comment thread src/sc_linac_physics/applications/microphonics/plots/base_plot.py Outdated
Comment thread src/sc_linac_physics/applications/microphonics/plots/fft_plot.py Outdated
@hmarts9 hmarts9 enabled auto-merge (squash) May 11, 2026 02:54
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why does the spectrogram plot only remove the specific tooltip, but not add the new shared tooltip?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The spectrogram uses a grid of separate sub plots for each cavity so the shared PlotTooltip can't just attach to it like the other plots. Also it already has the colorbar for power values and it's more about looking at patterns than reading individual points so I didn't think a tooltip would really add much here. I can look into adding one though if you think we need it.

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.

3 participants