15 TCanvas *c =
new TCanvas(
"c",
"A Simple Graph Example with Text",700,500);
20 gr->
SetTitle(
"A Simple Graph Example with Text");
TList * GetListOfFunctions() const
virtual void SetTitle(const char *title="")
Set graph title.
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
virtual void SetGrid(Int_t valuex=1, Int_t valuey=1)
To draw Mathematical Formula.
virtual void Paint(Option_t *option="")
Paint.
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual Int_t GetPoint(Int_t i, Double_t &x, Double_t &y) const
Get x and y values for point number i.
char * Form(const char *fmt,...)
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
void drawtext(double x, double y, int f, const char *s)
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
Set x and y values for point number i.
virtual void Add(TObject *obj)
A Graph is a graphics object made of two arrays X and Y with npoints each.
TExec is a utility class that can be used to execute a C++ command when some event happens in a pad...
virtual void SetTextSize(Float_t tsize=1)
Set the text size.