Changeset 1550 for trunk


Ignore:
Timestamp:
03/27/09 16:19:31 (16 years ago)
Author:
Malte Marquarding
Message:

add alittle bit of room, so masks can be created past the first/last channel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapplotter.py

    r1549 r1550  
    101101        return
    102102
     103    def refresh(self):
     104        self._plotter.figure.show()
     105
    103106    def create_mask(self, **kwargs):
    104107        nwindows = 1
     
    111114        marg = 0.05*(xmax-xmin)
    112115        self._plotter.axes.set_xlim(xmin-marg, xmax+marg)
    113         self._plotter.show(False)
    114 
     116        self.refresh()
     117       
    115118        for w in xrange(nwindows):
    116119            wpos = []
     120            self.text(0.05,0.95, "Add mask boundary", coords="relative")
    117121            wpos.append(self._plotter.get_point()[0])
     122            del self._plotter.axes.texts[-1]
    118123            self.axvline(wpos[0], **kwargs)
    119124            wpos.append(self._plotter.get_point()[0])
Note: See TracChangeset for help on using the changeset viewer.