Re: TStyle stuff

Rene Brun (Rene.Brun@cern.ch)
Wed, 12 May 1999 08:17:43 +0000


mvl@nikhef.nl wrote:
>
> Hello rooters,
>
> When trying to get the output in the way I want to, I stumbled across the
> following:
>
> 1) Does anyone know the purpose of TStyle.SetDrawBorder? I thought that
> setting this to zero would make the annoying border (which appears only on
> the left and top of the graph) on graph printouts disappear. I found out
> that one should use TStyle->SetCanvasBorderMode(0) instead, but now I don't
> know what SetDrawBorder is good for.
>

Hi Marco,
This option is used by the TGraph class only. When a TGraph object is
drawn
with a fill area, if this option is set, the outline of the graph will
also
be drawn. This is a left over from an early TGraph::Paint
implementation.
Do not use this option anymore. This functionality should be provided by
an option in TGraph::Draw.

> 2) Is there a way to get thicker lines for the tickmarks?
> TStyle->SetLineWidth doesn't seem to work.

Unfortunately, this is not possible in 2.21/08.
I have activated this option in 2.22

Rene Brun

>
> Thanks,
>
> Marco van Leeuwen
>
> P.S.: This is my style definition, maybe it would be a good idea to make a
> style "Printable" in addition to the "Default" and "Plain" styles.
>
> gStyle->SetOptStat(0);
> gStyle->SetOptTitle(0);
> gStyle->SetLabelFont(02,"x");
> gStyle->SetLabelFont(02,"y");
> gStyle->SetLabelSize(.05,"x");
> gStyle->SetLabelSize(.05,"y");
> gStyle->SetCanvasColor(kWhite);
> gStyle->SetNdivisions(503,"x");
> gStyle->SetNdivisions(503,"y");
> gStyle->SetTitleSize(.06,"x");
> gStyle->SetTitleSize(.06,"y");
> gStyle->SetFrameLineWidth(2);
> gStyle->SetFrameFillColor(kWhite);
> gStyle->SetFrameBorderMode(0);
> gStyle->SetLineWidth(2);
> gStyle->SetPadLeftMargin(0.15);
> gStyle->SetPadBottomMargin(0.15);
> gStyle->SetPadBorderMode(0);
> gStyle->SetPadColor(kWhite);
> gStyle->SetDrawBorder(0);
> gStyle->SetCanvasBorderMode(0);