fixed the gauss fitting. now using scipy.optimize.curve_fit
just kidding now its fixed
can now keep fitting lines after you close fitting window and without reclicking "1d gauss fit" button