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 |
|
|
|