hanstt / plutt

A scriptable monitor for experimental data.
GNU Lesser General Public License v2.1
0 stars 1 forks source link

Fitting UI #25

Open hanstt opened 4 months ago

hanstt commented 4 months ago

The fitting UI is non-existent.

hanstt commented 4 months ago

Suggestion from inkdot7:

  1. Press 'g'.
  2. mean/std approx +-10 units (pixels/bins) around the mouse pointer.
  3. Fit wrt. mean/std.
  4. Fit wrt. to previous fit.

2D should be possible by processing x and y separately first.

Mouse-wheel to choose # std's from the mean.

Similar things have been tested, also on top of SNIP/SNIP2 which is implemented, and it's tricky to fit many kinds of spectra. Def. needs more work.

Probably the mouse-wheel approach would be the easiest and most flexible, and would work with bins. Press 'g', mouse-wheel to adjust the fitting band, then mouse-click will save the fit coordinates in "world space", not histogram space.

The multi-peak finder currently implemented is still useful but would need some love.