Changeset 1548


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

add interactive annotation capability. Also allow creation of masks interactively

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapplotter.py

    r1547 r1548  
    103103    def create_mask(self, **kwargs):
    104104        nwindows = 1
     105        panel = kwargs.get("panel", 0)
    105106        if kwargs.has_key("nwindows"):
    106107            nwindows = kwargs.pop("nwindows")
    107108        outmask = []
     109        xmin, xmax = self._plotter.subplots[panel]['axes'].get_xlim()
     110        marg = 0.05*(xmax-xmin)
     111        self._plotter.subplots[panel]['axes'].set_xlim(xmin-marg, xmax+marg)
     112
    108113        for w in xrange(nwindows):
    109114            wpos = []
Note: See TracChangeset for help on using the changeset viewer.