Hi Aaron,
If you set the fill-color of the Canvas before drawing anything
on it, the child frame drawn later will inherit the fill color of
the parent (canvas). So one alternative is:
canvas->SetFillColor(0); h->Draw();
If this is not convenient, what you are looking for is;
canvas->GetFrame()->SetFillColor(0);
Taylan
-- ---=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--- Taylan Akdogan Massachusetts Institute of Technology akdogan@mit.edu Department of Physics Phn:+1-617-258-0801 Laboratory for Nuclear Science Fax:+1-617-258-5440 Room 26-559 ---=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=---On Apr 30, 2005, at 3:04 AM, Aaron Joseph Maschinot wrote:
> > ok. after two hours of searching every color function i can find > in root, > i give up. does anyone know how to change the background color of > plotted > histograms from that default gray color to white? i'm not talking > about > the outside border (which is changed by TCanvas::SetFillColor). i > want to > change the background of the inside -- i.e. the region where the > actual > histograms are plotted. unparallel to TCanvas::SetFillColor, > TH*F::SetFillColor does not do anything to the background color... > > or, even better, is there a command that just makes white the default > color for all backgrounds? > > "user friendly", my ass... > > aaron >
This archive was generated by hypermail 2.1.2 : Mon Feb 24 2014 - 14:07:32 EST