RE: set a line in a TH2 ("POL") plot

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Tue, 3 Jun 2008 15:46:27 +0200


Hello,

1- Right now there is no axis on polar 2d coordinates plots. 2- You can use TPolyLine3D but you will have to draw it in the normalized space used to draw the 3d polar plot.

Cheers, O.Couet

-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Dan Holmes
Sent: Tuesday, June 03, 2008 3:33 PM
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] set a line in a TH2 ("POL") plot

Hello,

(2) related questions;

I have a TH2 Polar plot, How do i make an angular axis pop up?

i would like to segment it into slices in the angular coordinate. Do you know how i can draw a line at theta=0,x,y,z etc..? ..so that when i

spin the graphics box, the lines still move with the axis.

*snippet of plotting code below*

cheers,

Dan.

TH2F *CSCTF_etaPhiPlot = f.Get("SPTrack Eta-phi"); TCanvas * CSCTF_etaPhi_PlotCanv = new TCanvas("eta-phi","eta-phi",1); CSCTF_etaPhiPlot->Draw("POL,LEGO1");

..looks pretty but has no axis...

-- 
Dan Holmes         +41 76 48 75 404
http://www.cern.ch/dan.holmes
Received on Tue Jun 03 2008 - 15:46:31 CEST

This archive was generated by hypermail 2.2.0 : Wed Jun 04 2008 - 05:50:03 CEST