Changeset 1549 for trunk


Ignore:
Timestamp:
03/27/09 16:13:51 (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

    r1548 r1549  
    107107            nwindows = kwargs.pop("nwindows")
    108108        outmask = []
    109         xmin, xmax = self._plotter.subplots[panel]['axes'].get_xlim()
     109        self._plotter.subplot(panel)
     110        xmin, xmax = self._plotter.axes.get_xlim()
    110111        marg = 0.05*(xmax-xmin)
    111         self._plotter.subplots[panel]['axes'].set_xlim(xmin-marg, xmax+marg)
     112        self._plotter.axes.set_xlim(xmin-marg, xmax+marg)
     113        self._plotter.show(False)
    112114
    113115        for w in xrange(nwindows):
Note: See TracChangeset for help on using the changeset viewer.