Define a string to be inserted in the Postscript header
The string in header will be added to the Postscript file
immediatly following the %%Page line
For example, this string may contain special Postscript instructions like
200 200 translate
This information is used in TPostScript::Initialize

Set line style string (used by Postscript)
PostScript uses the following convention
a line is a suite of segments, each segment is described by the
number of pixels. For example default line styles are defined as:
linestyle 1 "[]" solid
linestyle 2 "[12 12]" dashed
linestyle 3 "[4 8]" dotted
linestyle 4 "[12 15 4 15]" dash-dotted
Up to 30 different styles may be defined.
The opening and closing brackets may be omitted
They will be automaticalled added by this function.

if mode is non null, the current date/time will be printed in the canvas.
The position of the date string can be controlled by:
mode = 1 (default) date is printed in the bottom/left corner.
mode = 2 date is printed in the bottom/right corner.
mode = 3 date is printed in the top/right corner.
The date position can also be controlled by:
gStyle->SetDateX(x); x in NDC
gStyle->SetDateY(y); y in NDC
The date text attributes can be changed with:
gStyle->GetAttDate()->SetTextFont(font=62);
gStyle->GetAttDate()->SetTextSize(size=0.025);
gStyle->GetAttDate()->SetTextAngle(angle=0);
gStyle->GetAttDate()->SetTextAlign(align=11);
gStyle->GetAttDate()->SetTextColor(color=1);
The current date attributes can be obtained via:
gStyle->GetAttDate()->GetTextxxxx();
When the date option is active, a text object is created when the pad
paint its list of primitives. The text object is named "DATE".
The DATE attributes can also be edited interactively (position
and attributes) via the normal context menu.

Specify a parameter offset to control the distance between the axis
and the axis title.
offset = 1 means : use the default distance
offset = 1.2 means: the distance will be 1.2*(default distance)
offset = 0.8 means: the distance will be 0.8*(default distance)
axis specifies which axis ("x","y","z"), default = "x"
if axis="xyz" set all 3 axes

STATIC function.
Linear gradient color table:
Red, Green and Blue are several RGB colors with values from 0.0 .. 1.0.
Their number is "Intervals".
Length is the length of the color interval between the RGB-colors:
Imaging the whole gradient goes from 0.0 for the first RGB color to 1.0
for the last RGB color, then each "Length"-entry in between stands for
the length of the intervall between the according RGB colors.
This definition is similar to the povray-definition of gradient
color tables.
In order to create a color table do the following:
Define the RGB Colors:
> UInt_t Number = 5;
> Double_t Red[5] = { 0.00, 0.09, 0.18, 0.09, 0.00 };
> Double_t Green[5] = { 0.01, 0.02, 0.39, 0.68, 0.97 };
> Double_t Blue[5] = { 0.17, 0.39, 0.62, 0.79, 0.97 };
Define the length of the (color)-interval between this points
> Double_t Stops[5] = { 0.00, 0.34, 0.61, 0.84, 1.00 };
i.e. the color interval between Color 2 and Color 3 is
0.79 - 0.62 => 17 % of the total palette area between these colors
Original code by Andreas Zoglauer <zog@mpe.mpg.de>

The color palette is used by the histogram classes
(see TH1::Draw options).
For example TH1::Draw("col") draws a 2-D histogram with cells
represented by a box filled with a color CI function of the cell content.
if the cell content is N, the color CI used will be the color number
in colors[N],etc. If the maximum cell content is > ncolors, all
cell contents are scaled to ncolors.
if ncolors <= 0 a default palette (see below) of 50 colors is defined.
the colors defined in this palette are OK for coloring pads, labels
if ncolors == 1 && colors == 0, then
a Pretty Palette with a Spectrum Violet->Red is created.
It is recommended to use this Pretty palette when drawing legos,
surfaces or contours.
if ncolors > 50 and colors=0, the DeepSea palette is used.
(see TStyle::CreateGradientColorTable for more details)
if ncolors > 0 and colors = 0, the default palette is used
with a maximum of ncolors.
The default palette defines:
index 0->9 : grey colors from light to dark grey
index 10->19 : "brown" colors
index 20->29 : "blueish" colors
index 30->39 : "redish" colors
index 40->49 : basic colors
The color numbers specified in the palette can be viewed by selecting
the item "colors" in the "VIEW" menu of the canvas toolbar.
The color parameters can be changed via TColor::SetRGB.

Change the time offset for time plotting.
Times are expressed in seconds. The corresponding numbers usually have 9
digits (or more if one takes into account fractions of seconds).
Thus, since it is very inconvenient to plot very large numbers on a scale,
one has to set an offset time that will be added to the axis begining,
in order to plot times correctly and conveniently. A convenient way to
set the time offset is to use TDatime::Convert().

Set option to strip decimals when drawing axis labels.
By default, TGaxis::PaintAxis removes trailing 0s after a dot
in the axis labels. Ex: {0,0.5,1,1.5,2,2.5, etc}
If this function is called with strip=kFALSE, TGAxis::PaintAxis will
draw labels with the same number of digits after the dot
Ex: (0.0,0.5,1.0,1.5,2.0,2.5,etc}

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.