help axis

From: Luca Grandi <luca.grandi_at_pv.infn.it>
Date: Thu, 13 Mar 2008 01:00:08 +0800 (CST)


Dear Rooties,

I am using the code below to plot a scatter plot on semi-logarithmic scale and, at the same time, to be able to plot the Stats.

I have tried different solutions but I am unable to write the title on the axis of the scatter plot.

Could you help me?

Thanks

Luca

{

TFile *f=TFile::Open("hsimple.root");

TTree *ntuple = (TTree*)f->Get("ntuple");

TCanvas *c1 = new TCanvas();

 c1->SetLogy();

ntuple->Draw("pz:px>>h2(50,-3,3,50,1e-2,20)","","");

TH2 *h2 = (TH2*)gDirectory->Get("h2");

h2->SetMaximum(0);
h2->Draw("sames");
} Received on Wed Mar 12 2008 - 18:00:16 CET

This archive was generated by hypermail 2.2.0 : Wed Mar 12 2008 - 23:50:01 CET