Re: [ROOT] pad colors (under TGraph objects) after ...->Print("...", "eps"); commands

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sun Mar 04 2001 - 16:21:32 MET


Hi Thomas,
I cannot understand your point.
You can do either pad.Print or Canvas.Print. pad.Print will only print
the pad and canvas.Print will print everything in the canvas.
Note that you do not need to do pad.Print("pad.eps","eps"),
pad.Print("pad.eps") is enough.
In your case, from the dump of your file, I see that somewhere you have
set the pad fillcolor to 1 (not 10). I have not seen your code, but
you must search for the place where you set padfillcolor to 1.
The behaviour is independent if the pad contains histograms, graphs or
other objects.

Rene Brun


On Sun, 4 Mar 2001, Thomas Feser wrote:

> 
> 
> 
> > You saved the pad and not as I told you the canvas.
> > Anyhow, By looking at your pad with
> > TFile f("test.root")
> > pad.Dump()
> > 
> > I see that you have set the pad FillColor to 1 (black). So, you must
> > investigate where you do this in your settings.
> > 
> > Rene
> 
>   Hi Rene & others.
> 
>   My problem seems to be solved.
>   While it is possible to say pad->Print("test.eps", "eps"); with fine
> results for pads containing histograms, the same seems to produce "black
> on black" with graphs. In the case of graphs it's only possible to say
> canvas->Print(...); which I didn't do. In my code commands like
> {gStyle->SetPadColor(10); gROOT->ForceStyle();} did not have any effects
> on the output.
> 
>   Cheers,
>   _
>   |om
> 
> 
> ------------------------------------------------------------------------
> -     Thomas Feser                                                     -
> -                                                                      -
> -     Institut fuer Physik                phone: +49-6131-39-25165     -
> -     ETAP/AMANDA                           fax: +49-6131-39-25169     -
> -     Staudingerweg 7 / 04-426                                         -
> -     D-55099 Universitaet Mainz                                       -
> -                                                                      -
> -     Thomas.Feser@uni-mainz.de                                        -
> -     http://iphcip1.physik.uni-mainz.de/~tfeser                       -
> ------------------------------------------------------------------------
> 
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:38 MET