Changeset 1461
- Timestamp:
- 12/22/08 12:56:22 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma/python/asapfitter.py
r1446 r1461 518 518 519 519 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 ) 520 532 self._p.palette(0,colours) 521 self._p.set_line(label= 'Spectrum')533 self._p.set_line(label=label0) 522 534 y = ma.masked_array(self.y,mask=logical_not(m)) 523 535 self._p.plot(self.x, y) 524 536 if residual: 525 self._p.palette( 1)537 self._p.palette(7) 526 538 self._p.set_line(label='Residual') 527 539 y = ma.masked_array(self.get_residual(),
Note:
See TracChangeset
for help on using the changeset viewer.