[ROOT] Re: Turning off red border for current pad

From: Stilianos Kesisoglou (kesisogl@fnal.gov)
Date: Thu Mar 06 2003 - 15:50:20 MET


Hi Chris,

    The best way to remove it completely is to edit the file ".rootrc"

    If you don't have one on your home area then you are using the system-wide file that 
is located in the following place:

        $ROOTSYS/etc/system.rootrc

    Just make a copy of this on your home area and name it ".rootrc"
    
    Then edit (or add) the line:

        Canvas.HighLightColor:      2

or
        Rint.Canvas.HighLightColor:      2

    The integer number is the color index code (red is 2) that is used for the borders, and you can set it to whatever you want.


Stelios.

----- Original Message ----- 
From: "Chris Green" <greenc@fnal.gov>
To: <about-root@fnal.gov>
Sent: Thursday, March 06, 2003 4:46 AM
Subject: Turning off red border for current pad


> Hi,
> 
> I have a program which uses ROOT (v3_03_07c), and may print a canvas to a
> .gif file.  For this, of course, I need to not be in batch mode. However,
> if my canvas is divided and I use TPad::cd() to draw (eg) histograms in
> appropriate places, then when I use TPad::Print("fred.gif"), I have an
> unsightly red border around the current pad. If I do cd() for the canvas,
> then it is the canvas which has the unsightly norder. Is it possible to
> remove this border before producing the .gif file?
> 
> Thanks,
> Chris.
> 
> --
> Chris Green, MiniBooNE / UCR. Email greenc@fnal.gov
> Tel: (630) 840-2167. Fax: (630) 840-3867
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET