Example showing how to produce a plot with an orthogonal axis system centered at (0,0).
void xyplot()
{
c->SetFrameBorderMode(0);
gr->GetHistogram()->GetYaxis()->SetTickLength(0);
gr->GetHistogram()->GetXaxis()->SetTickLength(0);
gr->GetHistogram()->GetYaxis()->SetLabelSize(0);
gr->GetHistogram()->GetXaxis()->SetLabelSize(0);
gr->GetHistogram()->GetXaxis()->SetAxisColor(0);
gr->GetHistogram()->GetYaxis()->SetAxisColor(0);
gPad->GetUymin(),
gPad->GetUymax(),6,
"+LN");
gPad->GetUxmin(),
gPad->GetUxmax(),510,
"+L");
}
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual void SetTextAngle(Float_t tangle=0)
Set the text angle.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
void ChangeLabel(Int_t labNum=0, Double_t labAngle=-1., Double_t labSize=-1., Int_t labAlign=-1, Int_t labColor=-1, Int_t labFont=-1, const TString &labText="")
Define new text attributes for the label number "labNum".
A TGraph is an object made of two arrays X and Y with npoints each.
To draw Mathematical Formula.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
- Author
- Olivier Couet
Definition in file xyplot.C.