This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
limits:brazilianplotexample [2016/08/06 14:23] – created iwn | limits:brazilianplotexample [2017/09/18 15:19] (current) – iwn | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <file python> | + | {{ limits: |
+ | |||
+ | To be used with [[plots: | ||
+ | |||
+ | <file python | ||
import ROOT | import ROOT | ||
Line 32: | Line 36: | ||
" | " | ||
#" | #" | ||
- | " | + | " |
#" | #" | ||
] | ] | ||
Line 80: | Line 84: | ||
# PLOT upper limits | # PLOT upper limits | ||
def plotUpperLimits(labels, | def plotUpperLimits(labels, | ||
- | # see CMA plot guidelines: https:// | + | # see CMS plot guidelines: https:// |
| | ||
N = len(labels) | N = len(labels) | ||
Line 102: | Line 106: | ||
T = 0.08*H | T = 0.08*H | ||
B = 0.12*H | B = 0.12*H | ||
- | L = 0.12*W*scaleleftmargin | + | L = 0.12*W |
- | R = 0.04*W*scalerightmargin | + | R = 0.04*W |
c = TCanvas(" | c = TCanvas(" | ||
c.SetFillColor(0) | c.SetFillColor(0) |