Package spectractor :: Module plotter :: Class Flatter
[hide private]
[frames] | no frames]

Class Flatter

source code

spectractor.Spliner --+
                      |
                     Flatter

Class for interactive flatting set of 1D data.

Instance Methods [hide private]
 
__init__(self, splt, data, ccm=None, blaze=None, clr='c', lw=1, grid=False, zw=100, spk=3) source code
 
init_prm(self) source code
 
plotdat(self) source code
 
plotspl(self, delprev=True) source code
 
mksplfit(self, points) source code
 
plotdiv(self) source code
 
clear(self) source code
 
delplt(self, ind) source code
 
set_lims(self, data, ysh=None) source code
 
getcoords(self, event, rndl=3) source code
 
addpnt(self, event) source code
 
next(self) source code
 
zoom(self, event) source code
 
__call__(self, evnt) source code

Inherited from spectractor.Spliner: flat_order, mk_spline, splpl

Method Details [hide private]

__init__(self, splt, data, ccm=None, blaze=None, clr='c', lw=1, grid=False, zw=100, spk=3)
(Constructor)

source code 
Parameters:
  • splt - matplotlib subplot object
  • data - iterable array of 1D data
  • ccm - optional array of supplement reference points
  • blaze - optional array of supplement curves
  • zw - half width of zooming window
  • spk - degree of spline
Overrides: spectractor.Spliner.__init__

__call__(self, evnt)
(Call operator)

source code 
Parameters:
  • evnt - event