ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/lucieg/macros/styles.py
Revision: 1.3
Committed: Tue Jul 19 13:48:56 2011 UTC (13 years, 9 months ago) by lucieg
Content type: text/x-python
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +8 -1 lines
Log Message:
resync

File Contents

# User Rev Content
1 lucieg 1.1 import FWCore.ParameterSet.Config as cms
2    
3 lucieg 1.2 def setStyle(histo, color = 1, style = 1, xTitle = "", yTitle = "", title = ""):
4 lucieg 1.1
5 lucieg 1.3 histo.SetLineWidth(2)
6 lucieg 1.1 histo.SetLineColor(color)
7     histo.SetLineStyle(style)
8     histo.SetXTitle(xTitle)
9     histo.SetYTitle(yTitle)
10     histo.SetTitle(title)
11 lucieg 1.2
12     def setStyle2D(histo, markerStyle = 20, xTitle = "", yTitle = "", title = ""):
13    
14     histo.SetMarkerSize(1)
15     histo.SetMarkerStyle(markerStyle)
16     histo.SetXTitle(xTitle)
17     histo.SetYTitle(yTitle)
18     histo.SetTitle(title)
19 lucieg 1.3
20     def canvasStyle(canvas):
21    
22     canvas.SetLogy()
23     canvas.SetGridx()
24     canvas.SetGridy()
25