Changeset 2602 for trunk/python
- Timestamp:
- 07/19/12 16:20:07 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r2600 r2602 1687 1687 xgrid = wx/self._cols 1688 1688 ygrid = wy/self._rows 1689 print "Pointing range: (x, y) = (%f - %f, %f - %f)" %\1690 (dirarr[0].min(),dirarr[0].max(),dirarr[1].min(),dirarr[1].max())1689 #print "Pointing range: (x, y) = (%f - %f, %f - %f)" %\ 1690 # (dirarr[0].min(),dirarr[0].max(),dirarr[1].min(),dirarr[1].max()) 1691 1691 # identical R.A. and/or Dec. for all spectra. 1692 1692 if xgrid == 0: … … 1700 1700 # # spacing is a quantity 1701 1701 elif isinstance(spacing,list) and len(spacing) > 1: 1702 for val in spacing[0:2]: 1703 if not isinstance(val, str): 1702 for i in xrange(2): 1703 val = spacing[i] 1704 if not isinstance(val, float): 1704 1705 raise TypeError("spacing should be a list of float") 1706 if val > 0.: 1707 spacing[i] = -val 1705 1708 spacing = spacing[0:2] 1706 1709 else: … … 1716 1719 #ybound = [center[1]-spacing[1]*self._rows/2., 1717 1720 # center[1]+spacing[1]*self._rows/2.] 1718 print "Plot range: (x, y) = (%f - %f, %f - %f)" %\1719 (minpos[0],minpos[0]+spacing[0]*self._cols,1720 minpos[1],minpos[1]+spacing[1]*self._rows)1721 # (xbound[0],xbound[1],ybound[0],ybound[1])1721 #print "Plot range: (x, y) = (%f - %f, %f - %f)" %\ 1722 # (minpos[0],minpos[0]+spacing[0]*self._cols, 1723 # minpos[1],minpos[1]+spacing[1]*self._rows) 1724 ## (xbound[0],xbound[1],ybound[0],ybound[1]) 1722 1725 ifs = self._data.getifnos() 1723 1726 if len(ifs) > 1: … … 1763 1766 #if pos[0] < xbound[0] or pos[0] > xbound[1]: 1764 1767 if ix < 0 or ix >= self._cols: 1765 print "Row %d : Out of X-range (x = %f) ... skipped" % (irow, pos[0])1768 #print "Row %d : Out of X-range (x = %f) ... skipped" % (irow, pos[0]) 1766 1769 continue 1767 1770 #ix = min(int((pos[0] - xbound[0])/spacing[0]),self._cols) … … 1769 1772 #if pos[1] < ybound[0] or pos[1] > ybound[1]: 1770 1773 if iy < 0 or iy >= self._cols: 1771 print "Row %d : Out of Y-range (y = %f) ... skipped" % (irow,pos[1])1774 #print "Row %d : Out of Y-range (y = %f) ... skipped" % (irow,pos[1]) 1772 1775 continue 1773 1776 #iy = min(int((pos[1]- ybound[0])/spacing[1]),self._rows) 1774 1777 ipanel = ix + iy*self._cols 1775 1778 if len(self._plotter.subplots[ipanel]['lines']) > 0: 1776 print "Row %d : panel %d lready plotted ... skipped" % (irow,ipanel)1779 #print "Row %d : panel %d lready plotted ... skipped" % (irow,ipanel) 1777 1780 # a spectrum already plotted in the panel 1778 1781 continue 1779 1782 # Plotting this row 1780 print "PLOTTING row %d (panel=%d)" % (irow, ipanel)1783 #print "PLOTTING row %d (panel=%d)" % (irow, ipanel) 1781 1784 npl += 1 1782 1785 self._plotter.subplot(ipanel) 1783 self._plotter.palette(0) 1786 self._plotter.palette(0,colormap=self._colormap, \ 1787 linestyle=0,linestyles=self._linestyles) 1784 1788 xlab = self._abcissa and self._abcissa[ipanel] \ 1785 1789 or scan._getabcissalabel(irow)
Note:
See TracChangeset
for help on using the changeset viewer.