Changeset 1667 for branches/alma


Ignore:
Timestamp:
12/05/09 10:37:58 (14 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No

Ready to Release: Yes

Interface Changes: No

What Interface Changed:

Test Programs: run sdbaseline with interactive=True

Put in Release Notes: No

Module(s): sdbaseline, sdstat

Description: fixed a bug that caused setting plot range too wide.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/python/interactivemask.py

    r1630 r1667  
    161161                        for panel in self.p._plotter.subplots:
    162162                                xmin, xmax = panel['axes'].get_xlim()
    163                                 marg = 0.05*(xmax-xmin)
     163                                marg = 0.05*abs(xmax-xmin)
    164164                                panel['axes'].set_xlim(xmin-marg, xmax+marg)
     165                                if rcParams['plotter.ganged']: break
    165166                        self.p._plotter.show()
    166167
Note: See TracChangeset for help on using the changeset viewer.