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

# Content
1 import FWCore.ParameterSet.Config as cms
2
3 def setStyle(histo, color = 1, style = 1, xTitle = "", yTitle = "", title = ""):
4
5 histo.SetLineWidth(2)
6 histo.SetLineColor(color)
7 histo.SetLineStyle(style)
8 histo.SetXTitle(xTitle)
9 histo.SetYTitle(yTitle)
10 histo.SetTitle(title)
11
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
20 def canvasStyle(canvas):
21
22 canvas.SetLogy()
23 canvas.SetGridx()
24 canvas.SetGridy()
25