#!/usr/bin/python -tt import sys from pyfact import SlowData from plotters import CamPlotter import matplotlib.pyplot as plt cp = CamPlotter('Mean GainRMS ' + sys.argv[1]) f = SlowData(sys.argv[1]) f.register('all') f.next() GainRms = f.GainRms.reshape(1440,1024) cp(GainRms.mean(axis=1)) cp.ax.text(-25,25,f.date[0]) plt.draw() png = sys.argv[1]+'_gainRMS.png' plt.savefig(png) import os cmd = 'convert ' + png + ' ' + png[:-4] + '.pdf' print cmd os.system(cmd)