Graphical Output
PostScript and PDF
TASImage
The text size adjustment applied TASImage::DrawText
was not valid (scale factor of 1.044). The text size was wrong and the
following macro produced a wrong title when ran in batch:
{
TCanvas *canvas = new TCanvas("c5","c5",900,900);
TH1F *histo = new TH1F("Histo","123456x_{i}abcdefy^{2}",100,0,20);
canvas->Print("drawing.gif");
}
Graphics Primitives
New class TGraphTime
TGraphTime is used to draw a set of objects evolving with nsteps in time between tmin and tmax.
each time step has a new list of objects. This list can be identical to
the list of objects in the previous steps, but with different attributes.
see example of use in $ROOTSYS/tutorials/graphs/gtime.C
TLatex
- In the following macro the #int and #sum symbols had
wrong limits placement if the character just before started with "#".
{
TCanvas *c1 = new TCanvas("c1","c1",500,500);
TLatex l;
l.SetTextSize(0.1);
l.DrawLatex(0.1,0.6,"#nu#int^{1-x}_{2#pi}");
l.DrawLatex(0.1,0.2,"a#int^{1-x}_{2#pi}");
l.DrawLatex(0.5,0.6,"#nu#sum^{1-x}_{2#pi}");
l.DrawLatex(0.5,0.2,"a#sum^{1-x}_{2#pi}");
}
This problem is there since the 1st version of TLatex. It is fixed by:
- Giving "^" and "_" a lower precedence than special and greek characters.
- Making a special case for #int and #sum and giving them even
lower precedence than "^" and "_".
Oleksandr Grebenyuk helped a lot solving this
issue.
TMarker
- The markers picking now takes into account the marker size. This is
useful for big markers, because there is no need to pick exactly the
marker's center.