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.1 by wangdy, Wed Sep 24 08:36:17 2008 UTC vs.
Revision 1.2 by wangdy, Wed Sep 24 09:03:04 2008 UTC

# Line 32 | Line 32 | supprange=False
32   SUP_YMAX=55.0    # maximum y range for suppressed plots;mainly for vprates
33   SUP_YMAX1=500.0  # maximum y range for tot:stub
34   SUP_YMAX2=35.0  # maximum y range for tot:track
35 < SUP_YMAX3=10.0  # maximum y range for tot:halo
35 > SUP_YMAX3=40.0  # maximum y range for tot:halo
36   isSummary=False # is this rate counter summary?
37   isTotalrate=False
38   ratelabel=["Stubs","Tracks","Halos"]
# 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)
224 <        text(180,8.0,"Sector %d" %(isp))
225 <        if isp<5:
223 >        aa=subplot(3,2,isp-6)
224 >        text(180,32.0,"Sector %d" %(isp-6))
225 >        if isp<5+6:
226              subplots_adjust(hspace=0.0)
227          plot(ewc_content[2],linestyle='steps')
228          ind_tick=xrange(0,len(time_stamp),30)
229   #        axvspan(50.0,100.0,facecolor='y',alpha=0.4)
230          axvspan(105.0,175.0,facecolor='y',alpha=0.3)
231          
232 <        if isp>4:
232 >        if isp>4+6:
233              xticks(ind_tick,time_stamp[::30],rotation=90)
234          else:
235              xticks([],[])
# Line 251 | Line 251 | if __name__ == '__main__':
251              else:
252                  axis(ymax=SUP_YMAX)
253  
254 <    suptitle('history of halo rate(/10s) in ME+ trigger sectors, Sep 11')        
255 <    savefig('HaloRateHistory_MEPlus.png')
256 <    savefig('HaloRateHistory_MEPlus.svg')
257 <    savefig('HaloRateHistory_MEPlus.eps')        
254 >    suptitle('history of halo rate(/10s) in ME- trigger sectors, Sep 11')        
255 >    savefig('HaloRateHistory_MEMinus.png')
256 >    savefig('HaloRateHistory_MEMinus.svg')
257 >    savefig('HaloRateHistory_MEMinus.eps')        
258  
259  
260  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines