Changeset 13402 for fact/tools/pyscripts/pyfact
- Timestamp:
- 04/21/12 09:22:28 (13 years ago)
- Location:
- fact/tools/pyscripts/pyfact
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/pyfact/coor.py
r13391 r13402 28 28 29 29 chid, xe, ye = np.loadtxt(map_file_path, unpack=True) 30 coors = zip(xe,ye,chid) 30 # -ye in order to correct for the sign difference between my mapping file 31 # and FACTmap111030.txt 32 self.x = xe 33 self.y = ye 34 coors = zip(xe,-ye,chid) 31 35 32 36 # this list will contain vectors pointing to the center of pixel … … 154 158 raise IOError('not able to find file: '+inpath) 155 159 156 157 if __name__ == '__main__':158 co = Coordinator()159 -
fact/tools/pyscripts/pyfact/plotters.py
r13174 r13402 116 116 chid, y,x,xe,ye,yh,xh,softid,hardid = np.loadtxt(map_file_path ,unpack=True) 117 117 self.xe = xe 118 self.ye = ye 118 # -ye in order to correct for the sign difference between my mapping file 119 # and FACTmap111030.txt 120 self.ye = -ye 119 121 120 122 self.H = (6,0,30./180.*3.1415926) … … 199 201 self.ax.grid(grid) 200 202 # the next line is a stupid hack 201 # I plot invisible pixels, so that the axes showlook ok.203 # I plot invisible pixels, so that the axes look ok. 202 204 # this must be possible differently, but I don't know how... 203 205 self.ax.scatter(xe,ye,s=25,alpha=0,marker=H)
Note:
See TracChangeset
for help on using the changeset viewer.