Skip to content

Commit

Permalink
reorganize button and peak fit settings are back
Browse files Browse the repository at this point in the history
	modified:   src/histoer/histo1d/context_menu.rs
	modified:   src/histoer/histogrammer.rs
	modified:   src/histoer/tree.rs
	modified:   src/histogram_scripter/manual_histogram_script.rs
	modified:   src/ui/app.rs
  • Loading branch information
alconley committed Nov 5, 2024
1 parent eef7ef9 commit 3663ed2
Show file tree
Hide file tree
Showing 5 changed files with 225 additions and 189 deletions.
10 changes: 5 additions & 5 deletions src/histoer/histo1d/context_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ impl Histogram {
// Add find peaks button
ui.separator();
ui.heading("Peak Finder");
// if ui.button("Detect Peaks")
// .on_hover_text("Takes the settings (adjust below) and finds peaks in the spectrum\nIf there are background markers, it will fit a background before it finds the peaks in between the min and max values. Likewise for region markers.\nKeybind: o").clicked() {
// self.find_peaks();
// }
// self.plot_settings.find_peaks_settings.menu_button(ui);
if ui.button("Detect Peaks")
.on_hover_text("Takes the settings (adjust below) and finds peaks in the spectrum\nIf there are background markers, it will fit a background before it finds the peaks in between the min and max values. Likewise for region markers.\nKeybind: o").clicked() {
self.find_peaks();
}
self.plot_settings.find_peaks_settings.menu_button(ui);

ui.separator();
ui.heading("Rebin");
Expand Down
Loading

0 comments on commit 3663ed2

Please sign in to comment.