Changeset 14427 for fact/tools
- Timestamp:
- 09/26/12 15:34:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/pyfact/plot_temps.py
r14261 r14427 15 15 16 16 #from ROOT import TCanvas, TGraph, TGraphErrors, TH2F 17 #from ROOT import gROOT18 17 #from ROOT import gStyle 19 18 20 19 import matplotlib.pyplot as plt 21 20 import matplotlib.dates 22 23 gROOT.SetStyle("Plain")24 21 25 22 filelist = [] … … 93 90 94 91 plt.ylim(12,41) 95 plt.savefig(sys.argv[2]) 92 93 if len(sys.argv) > 2: 94 plt.savefig(sys.argv[2]) 95 print 'plot saved to', sys.argv[2] 96 else: 97 print "WARNING:" 98 print "plot was not saved..." 99 print "please type: plt.savefig('<filename.png>') or so ... to save it"
Note:
See TracChangeset
for help on using the changeset viewer.