Changeset 2989
- Timestamp:
- 09/12/14 19:19:32 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r2988 r2989 1577 1577 # reverse x-axis 1578 1578 xmin, xmax = self.gca().get_xlim() 1579 self._plotter.set_limits(xlim=[xmax,xmin]) 1579 ymin, ymax = self.gca().get_ylim() 1580 # expand plotrange if xmin==xmax or ymin==ymax 1581 if abs(ymax-ymin) < 1.e-3: #~4arcsec 1582 delx = 0.5*abs(xmax - xmin) 1583 if delx < 5.e-4: 1584 dxy = 5.e-4 #~2arcsec 1585 (ymin, ymax) = (ymin-dxy, ymax+dxy) 1586 (xmin, xmax) = (xmin-dxy, xmax+dxy) 1587 (ymin, ymax) = (ymin-delx, ymax+delx) 1588 elif abs(xmax-xmin) < 1.e-3: 1589 dely = 0.5*abs(ymax - ymin) 1590 (xmin, xmax) = (xmin-dely, xmax+dely) 1591 self._plotter.set_limits(xlim=[xmax,xmin], ylim=[ymin, ymax]) 1580 1592 1581 1593 self._plotter.release()
Note:
See TracChangeset
for help on using the changeset viewer.