Strange FillStyle for THStack?

From: Christian Hansen <christian.hansen_at_cern.ch>
Date: Tue, 8 Mar 2005 05:16:00 +0100 (CET)

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

Received on Tue Mar 08 2005 - 05:15:51 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:05 MET