Re: [ROOT] Colors in PS prints

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Feb 09 2001 - 22:12:33 MET


Hi Dmitri,
This problem is now fixed in CVS. Thanks for reporting it.

Rene Brun


On Fri, 9 Feb 2001, Dmitri Litvintsev wrote:

> 
> 
> Hi Rene,
> 
> Sorry,
> 
> I was wrong - colors greater than 100 do not work.
> As fars as I remember:
>      100+colornumber - dark version of a color.
>      150+colornumber - light
> 
> this is the macro Dmitry.C:
> {
> TCanvas* c = new TCanvas("test","test",800,600);
> c->cd();
> TPad* pad = new TPad("pad","pad",0.25,0.25,0.75,0.75);
> pad->SetFillColor(108);
> pad->Draw();
> c->SaveAs("canvas.ps");
> }
> 
> root -b -q Dmitry.C produces the first PS file I attached (canvas.ps)
> The color of the Pad is far from being green
> 
> Running the same macro interactively produced the second PS
> attached PS file (canvas1.ps) with the right color.
> 
> regards,
> Dmitri Litvintsev
> 
> /----------------------------------------------------------\
> | Tel:       (630) 840 5005                                |
> | FAX:       (630) 840 2968                                |
> | office:    169-E CDF Trailers                            |
> | E-mail:    litvinse@fnal.gov                             |
> \----------------------------------------------------------/
> 
> 
> 
> 
> On Fri, 9 Feb 2001, Rene Brun wrote:
> 
> > Hi Dmitri,
> > I cannot reproduce this problem.
> > Could you send me an example with a short macro Dmitri.C
> >  root -b -q Dmitri.C
> >
> > Rene Brun
> >
> > Dmitri Litvintsev wrote:
> > >
> > > Hi!
> > >
> > > I happened to notice that if I save Pad (SaveAs()) in batch mode
> > > I get poor color map , that is I get *correctly* only primary colors.
> > > Everything higher than 10 looks grayish.
> > >
> > > Is it a known problem or I haven't set something in my environment
> > > (interactively pictures get saved just fine)
> > >
> > > Dmitri Litvintsev
> > >
> > > /----------------------------------------------------------\
> > > | Tel:       (630) 840 5005                                |
> > > | FAX:       (630) 840 2968                                |
> > > | office:    169-E CDF Trailers                            |
> > > | E-mail:    litvinse@fnal.gov                             |
> > > \----------------------------------------------------------/
> >
> 



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