Changeset 1461 for branches/alma


Ignore:
Timestamp:
12/22/08 12:56:22 (16 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-1085

Ready to Release: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: execute sdbaseline with verify=True

Put in Release Notes: No

Description: Previously asapfitter only plots selected

region to verify baseline fit. I have
modified to plot whole spectral regions to
verify fit.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/python/asapfitter.py

    r1446 r1461  
    518518
    519519        colours = ["#777777","#dddddd","red","orange","purple","green","magenta", "cyan"]
     520        nomask=True
     521        for i in range(len(m)):
     522            nomask = nomask and m[i]
     523        label0='Masked Region'
     524        label1='Spectrum'
     525        if ( nomask ):
     526            label0=label1
     527        else:
     528            y = ma.masked_array( self.y, mask = m )
     529            self._p.palette(1,colours)
     530            self._p.set_line( label = label1 )
     531            self._p.plot( self.x, y )
    520532        self._p.palette(0,colours)
    521         self._p.set_line(label='Spectrum')
     533        self._p.set_line(label=label0)
    522534        y = ma.masked_array(self.y,mask=logical_not(m))
    523535        self._p.plot(self.x, y)
    524536        if residual:
    525             self._p.palette(1)
     537            self._p.palette(7)
    526538            self._p.set_line(label='Residual')
    527539            y = ma.masked_array(self.get_residual(),
Note: See TracChangeset for help on using the changeset viewer.