source: BAORadio/AmasNancay/trunk/plotDiffOnOff.pic @ 551

Last change on this file since 551 was 550, checked in by campagne, 13 years ago

plotting script ON-OFF (jec)

File size: 1.2 KB
Line 
1#$1: source
2#$2: nber of cycles
3#$3: number of freq. combined for reducing mean/sigma
4
5set source $1
6set ncycles $2
7set nFreqBin $3
8openppf meanDiffOnOffRaw_${source}-${ncycles}Cycles.ppf
9
10
11##General Mean
12del s0 s1
13objaoper mean row 0 s0
14objaoper mean row 1 s1
15graphicatt "xylimits=1250,1500,-0.01,0.01"
16newwin 1 1
17plot2d s0 (n/8192)*250+1250 val n>0 "cpts blue nsta notit"
18plot2d s1 (n/8192)*250+1250 val n>0 "same cpts red nsta notit"
19settitle "<(ON-OFF)[r,c]/Gain[r]>_{r,c} $source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)"
20
21
22##Reduced Mean
23newwin 1 1
24del rs0 rs1
25objaoper meanred row 0 rs0
26objaoper meanred row 1 rs1
27plot2d rs0 (n/${nFreqBin})*250+1250 val n>0 "marker=fcircle,5 blue nsta notit"
28plot2d rs1 (n/${nFreqBin})*250+1250 val n>0 "same marker=fcircle,5 red nsta notit"
29settitle "<(ON-OFF)[r,c]/Gain[r]>_{r,c} Rebin(${nFreqBin}) $source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)"
30
31##Reduced Mean
32newwin 1 1
33del rss0 rss1
34objaoper sigmared row 0 rss0
35objaoper sigmared row 1 rss1
36plot2d rss0 (n/${nFreqBin})*250+1250 val n>0 "marker=fcircle,5 blue nsta notit"
37plot2d rss1 (n/${nFreqBin})*250+1250 val n>0 "same marker=fcircle,5 red nsta notit"
38settitle "Sigma[(ON-OFF)[r,c]/Gain[r]] Rebin(${nFreqBin}) $source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)"
39
40
Note: See TracBrowser for help on using the repository browser.