ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/wangdy/monplot/plot_rate_singlecanvas.py
(Generate patch)

Comparing UserCode/wangdy/monplot/plot_rate_singlecanvas.py (file contents):
Revision 1.4 by wangdy, Thu Apr 30 16:44:49 2009 UTC vs.
Revision 1.5 by wangdy, Thu Apr 30 16:54:57 2009 UTC

# Line 164 | Line 164 | if __name__ == '__main__':
164          os.chdir(dirname1)
165  
166  
167 <    for isp in xrange(1,7):
167 >    for isp in xrange(7,13):
168   #         dirname2="SP"+str(SPNum)
169   #         os.mkdir(dirname2)
170   #         os.chdir(dirname2)
# Line 220 | Line 220 | if __name__ == '__main__':
220              ewc_content[2].append(ewc[nn][2])
221  
222  
223 <        aa=subplot(3,2,isp)
223 >        aa=subplot(3,2,isp-6)
224   # this equivalent to the best; but not so simple
225   #        yscale('log')        
226   # this doesn't scale well when using logscale
227   #         myax=gca()
228   #         myax.set_yscale('log')
229  
230 <        text(180,20.0,"Sector %d" %(isp))
231 <        if isp<5:
230 >        text(180,20.0,"Sector %d" %(isp-6))
231 >        if isp<5+6:
232              subplots_adjust(hspace=0.0)
233   ## this turn to be the best option for logscale            
234          semilogy(ewc_content[2],linestyle='steps')
# Line 236 | Line 236 | if __name__ == '__main__':
236   #        axvspan(50.0,100.0,facecolor='y',alpha=0.4)
237          axvspan(105.0,175.0,facecolor='y',alpha=0.3)
238          
239 <        if isp>4:
239 >        if isp>4+6:
240              xticks(ind_tick,time_stamp[::30],rotation=90)
241          else:
242              xticks([],[])
# Line 261 | Line 261 | if __name__ == '__main__':
261              else:
262                  axis(ymax=SUP_YMAX)
263  
264 <    suptitle('history of halo rate(/10s) in ME+ trigger sectors, Sep 11')        
265 <    savefig('HaloRateHistory_MEPlus.png')
266 <    savefig('HaloRateHistory_MEPlus.svg')
267 <    savefig('HaloRateHistory_MEPlus.eps')        
264 >    suptitle('history of halo rate(/10s) in ME- trigger sectors, Sep 11')        
265 >    savefig('HaloRateHistory_MEMinus.png')
266 >    savefig('HaloRateHistory_MEMinus.svg')
267 >    savefig('HaloRateHistory_MEMinus.eps')        
268  
269  
270  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines