I have some question concerning THStack and the TH1 drawing option e4. I use the following code to generate a THStack and draw it:
// ... Loading tree with hists and setting colors and fill styles ...
The result is the following picture:
So no magic at all. Here are my questions:
- Is it possible to combine the “e4” and “pe0” drawings, “pe0e3” seems not to work.
- Looking at the very right of the red and the blue error bands one can see some strange effect. The bands are kind of bent where they should not be (In fact the blue band should be nearly flat at the right end). I saw this in the past every time I tried to use “e4”. Is this a known problem or am I missing something important when using “e4”?
- I always thought that THStack would scale the graph in such a way that all parts of all histograms fit into the boundaries of the graph. Since the blue error band should be symmetric it seems to me that THStack does not care about error bars. This can also be seen in the red graph at the point at 4.7 where the negative part of the error is completely out of the plot. Again, am I missing something important here? Would be nice to have really all parts scaled into the graph.
- There seem to be some clipping problems that can be seen on the leftmost negative part of the blue error band. As I said this should be symmetric. Seems like that point is clipped from approx. -1.2 to the lower boundary of the graph. Its the same with the leftmost upper part and the rightmost lower part of the red band. What could I do to avoid this?
Sorry for buggin’ you with so many questions, nevertheless thanks for any help