Re: Re: About graph in 3D polar coordinates

From: 郑保军 <tutelary0_at_gmail.com>
Date: Sun, 24 Jan 2010 12:42:05 +0800


Hello:
I have decided to get the (r,phi,f(r,phi)) graph through following codes:

TGraph2D *dt = new TGraph2D();
 dt->SetPoint(N,x,y,z);

        gStyle->SetPalette(1);
        dt->Draw("surf1pol");

and these can give me a basic graph,however there are three problems here, 1. there are no axises for r and phi for graph in polar coordinates (the graph in normal coordinates have axises for x ,y...) 2. I want to get a graph for r >a,because the (r,phi) I get have a character that the r has to be bigger than a constant value:a. 3 can draw options "cont1" and "pol" work together?It seems not.It is better for me to get a graph with contour . Thankyou very much!
Best Wishes!



Baojun Zheng
Lab.of Radiation Physics and Detection Technology Dep.of Engineering Physics,Tsinghua University Beijing 100084, China
Phone: +86-13466368028

2010-01-24

发件人: Rene Brun
发送时间: 2010-01-23 17:42:24
收件人: 郑保军
抄送:
主题: Re: About graph in 3D polar coordinates

see class TGraphPolar: http://root.cern.ch/root/html/TGraphPolar.html Rene
郑保军 wrote:
> Hello:
> I am Baojun Zheng, a master postgraduate student in Tsinghua
> University,Beijing,China.
> There is a problem I want to deal with in Root graphics.
> The data I got is as followed:
> (
> r1,phi1,y(r1,phi1);
> r2,phi2,y(r2,phi2);
> r3,phi3,y(r3,phi3);
> )
> So, I want to get a 2D graph for (r,phi,y(r,phi)) in polar coordinates.
> Could you please tell me which Histogram I should use and the draw
> options as well.
> I will be too glad if you can give me a example.
> Thank you very much!
> Best Wishes!
> ---------------------------------------------------------------------------
> Baojun Zheng
> Lab.of Radiation Physics and Detection Technology
> Dep.of Engineering Physics,Tsinghua University
> Beijing 100084, China
> Phone: +86-13466368028
> ----------------------------------------------------------------------------
> 2010-01-23
Received on Sun Jan 24 2010 - 05:41:37 CET

This archive was generated by hypermail 2.2.0 : Sun Jan 24 2010 - 17:50:01 CET