Skip to content
Snippets Groups Projects
Verified Commit 6653f172 authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Propagate histtype from stack to plot

parent 312c547c
No related branches found
No related tags found
No related merge requests found
......@@ -220,7 +220,8 @@ def hist(dataframe, variable, bins, stacks, selection=None,
variable, weight)
# Draw process
if stack.get_histtype(i_process) == 'points':
histtype = stack.get_histtype(i_process)
if histtype:
kwds = {'markersize': 4, 'fmt': 'o'}
kwds.update(stack.get_aux(i_process))
......@@ -230,7 +231,8 @@ def hist(dataframe, variable, bins, stacks, selection=None,
kwds = {}
kwds.update(stack.get_aux(i_process))
axes.hist(bin_centers, bins=bins, bottom=bottom,
label=process.label, weights=histogram, **kwds)
label=process.label, weights=histogram,
histtype=histtype, **kwds)
bottom += histogram
# (end of process loop)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment