source: fact/tools/pyscripts/sandbox/dneise/SlowDataPlotting/plot_DRScal_gain_RMS.py@ 14963

Last change on this file since 14963 was 14430, checked in by neise, 12 years ago
initial commit
  • Property svn:executable set to *
File size: 471 bytes
Line 
1#!/usr/bin/python -tt
2
3import sys
4from pyfact import SlowData
5from plotters import CamPlotter
6import matplotlib.pyplot as plt
7
8cp = CamPlotter('Mean GainRMS ' + sys.argv[1])
9
10f = SlowData(sys.argv[1])
11f.register('all')
12f.next()
13
14GainRms = f.GainRms.reshape(1440,1024)
15
16cp(GainRms.mean(axis=1))
17
18cp.ax.text(-25,25,f.date[0])
19plt.draw()
20
21png = sys.argv[1]+'_gainRMS.png'
22plt.savefig(png)
23
24import os
25cmd = 'convert ' + png + ' ' + png[:-4] + '.pdf'
26print cmd
27os.system(cmd)
Note: See TracBrowser for help on using the repository browser.