Somtimes it is necessary to expand certain area of the spectrum for better control of the fitting. I suggest it is possible without changin of esfit() function code by changing of 'XLim' property of corresponding subplot. The units of 'X' axis should be a numbers of data points. Is it so? Second problem is to obtain right handler for spectrum subplot. I try such code:
Just one question: from what I gather, the way to replot to the desired limits is to start the fit and go to the inspector and edit XLIm.x and XLim.y properties manually through the interface.
Is there a way to do this programmatically so that the given fit always starts the interactive window at the desired limits?
There is no direct access to the scaling in the esfit plot.
That said, you could use a timer object in your Matlab startup file that runs the rescaling periodically, using findboj as given above. This is a terrible hack though.