RE: How to plot a graph in polar coordinats?

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Fri, 5 May 2006 09:52:16 +0200


Hi,

Polar Coordinates plots are on our "to-do list". http://couet.home.cern.ch/couet/POW_files/frame.htm We are now working on a new class TPolarGraph. See: http://root.cern.ch/phpBB2/viewtopic.php?p=13101#13101 Also I can point to this page:
http://couet.home.cern.ch/couet/root/ht17.html Note that the option "POL" works only for 2D histogram in combination with the option LEGO and SURF.

Cheers, O.Couet

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch
[mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Anton Korneev Sent: Thursday, May 04, 2006 4:04 PM
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] How to plot a graph in polar coordinats?

Dear rooters,

I need to make a 2D graph in polar coordinates,

  1. for example "r = phi", I try TF1 f1("f1", "x", 0, 10); f1.Draw("COL");
     But it is do not work. Then I read html documentation on TF1 and
     found that TF1 does not support "COL" option.

  2) 1d histogram
       TH1F h1("h1","h1", 100, 0, 6);
       h1.FillRandom("gaus", 10000);
       h1.Draw("POL");

     Also don't work.

So, my question: how I can draw a polar graph like in attached file "x.png"?

--
Best regards,
 Anton                          mailto:anton_roottalk_at_tut.by
Received on Fri May 05 2006 - 09:54:11 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET