15 TCanvas *
c =
new TCanvas(
"c",
"A Simple Graph Example with Text",700,500);
20 gr->
SetTitle(
"A Simple Graph Example with Text");
51 l.PaintText(
x,
y+0.2,
Form(
"(%4.2f,%4.2f)",
x,
y));
char * Form(const char *fmt,...)
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
TExec is a utility class that can be used to execute a C++ command when some event happens in a pad.
A Graph is a graphics object made of two arrays X and Y with npoints each.
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
Set x and y values for point number i.
virtual void SetTitle(const char *title="")
Set graph title.
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
TList * GetListOfFunctions() const
To draw Mathematical Formula.
virtual void Add(TObject *obj)
void drawtext(double x, double y, int f, const char *s)