Changeset 14427 for fact/tools


Ignore:
Timestamp:
09/26/12 15:34:49 (12 years ago)
Author:
neise
Message:
minor changes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/pyfact/plot_temps.py

    r14261 r14427  
    1515
    1616#from ROOT import TCanvas, TGraph, TGraphErrors, TH2F
    17 #from ROOT import gROOT
    1817#from ROOT import gStyle
    1918
    2019import matplotlib.pyplot as plt
    2120import matplotlib.dates
    22 
    23 gROOT.SetStyle("Plain")
    2421
    2522filelist = []
     
    9390
    9491    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.