Changeset 624 for branches


Ignore:
Timestamp:
05/05/05 12:27:12 (20 years ago)
Author:
mar637
Message:

Fix for asap0019

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release-1-fixes/python/asapfitter.py

    r526 r624  
    132132            if len(ps) == 0:
    133133                self.fitter.estimate()
    134         self.fitter.fit()
     134        try:
     135            self.fitter.fit()
     136        except RuntimeError, msg:
     137            print msg           
    135138        self._fittedrow = row
    136139        self.fitted = True
     
    336339            xlab = self.data._getabcissalabel(self._fittedrow)
    337340            m = self.data._getmask(self._fittedrow)
    338             ylab = r'Flux'
    339 
    340         colours = ["grey60","grey80","red","orange","purple","yellow","magenta", "cyan"]
     341            ylab = self.data._get_ordinate_label()
     342
     343        colours = ["grey60","grey80","red","orange","purple","green","magenta", "cyan"]
    341344        self._p.palette(1,colours)
    342345        self._p.set_line(label='Spectrum')
Note: See TracChangeset for help on using the changeset viewer.