Christian Hansen
2005-03-08 04:16:00 UTC
Dear Rooters,
is there anyway to stop fill styles of different
histograms in a histogram stack to mix?
For example, I used $ROOTSYS/tutorials/hstack.C
and added only three lines (see attachement);
h1->SetFillStyle(3007);
h2->SetFillStyle(3004);
h3->SetFillStyle(3006);
The result from the edited hstack.C shows in the
upper left corner the stacked histograms, but now
with different fill styles.
One can see that the green vertical lines of h3
continues down and fills also h2 and h1. Is there
a way to force h1 to ONLY be filled with the red
horisontal lines, h2 to ONLY be filled with the
blue leaning lines and h3 to only be filled with
the green vertical lines?
Best regards
/ Christian Hansen
===============================================
Box 535 Office: +46-(0)18-471 32 57
S-751 21 Uppsala Office: 82104
Sweden
-----------------------------------------------
Mobile : +46-(0)708-887617
Home Page : http://welcome.to/Christian_Hansen
http://www.cern.ch/Christian.Hansen
is there anyway to stop fill styles of different
histograms in a histogram stack to mix?
For example, I used $ROOTSYS/tutorials/hstack.C
and added only three lines (see attachement);
h1->SetFillStyle(3007);
h2->SetFillStyle(3004);
h3->SetFillStyle(3006);
The result from the edited hstack.C shows in the
upper left corner the stacked histograms, but now
with different fill styles.
One can see that the green vertical lines of h3
continues down and fills also h2 and h1. Is there
a way to force h1 to ONLY be filled with the red
horisontal lines, h2 to ONLY be filled with the
blue leaning lines and h3 to only be filled with
the green vertical lines?
Best regards
/ Christian Hansen
===============================================
Box 535 Office: +46-(0)18-471 32 57
S-751 21 Uppsala Office: 82104
Sweden
-----------------------------------------------
Mobile : +46-(0)708-887617
Home Page : http://welcome.to/Christian_Hansen
http://www.cern.ch/Christian.Hansen