RE: How to smooth 3D Spheric plot

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Mon, 4 May 2009 15:01:48 +0200


It looks like the SURF1 option with the SPH option has some problems in that case.

Use GLSURF1 instead of SURF1 it looks much better.

We are putting more effort on the GL display right now. For both 3D plots like yours but also for 2D.

OC  

From: Dmitry Kotov [mailto:dmitriy.kotov_at_gmail.com] Sent: Monday, May 04, 2009 2:55 PM
To: Olivier Couet; Rene Brun; roottalk_at_root.cern.ch Subject: Re: [ROOT] How to smooth 3D Spheric plot  

Well, I've tried both: viewing it from different angles and myhist.Smooth(), as in Rene's advice.
Changing the angles doesn't work, the surface just remains difficult to interpret
And myHist.Smooth works perferctly well for xyz coordinates, but smth's still wrong with smoothing in spherical coordinates. Or, probably, it just the way it goes normally..

Just in case, here's my macros. You can run and change angles at your own if you want.
Maybe we'll figure out what's wrong together))

2009/5/4 Olivier Couet <Olivier.Couet_at_cern.ch>

Have you tried to rotate it to understand it better ? maybe that's just a matter of viewing angles ....    

From: Dmitry Kotov [mailto:dmitriy.kotov_at_gmail.com]

Sent: Monday, May 04, 2009 2:30 PM
To: Olivier Couet

Subject: Re: [ROOT] How to smooth 3D Spheric plot  

ok, thanks.
but still i don't understand why surf1 plot looks like a mess (while i thought it should look just like lego2 but smoothed).

Cheers,
Dmitry

2009/5/4 Olivier Couet <Olivier.Couet_at_cern.ch>

A lego is a lego .. it cannot be "smoothed" as you request. A smoothed representation will be a surface. And SURF1 corresponds to the "smoothed version of the lego2 option".

Cheers,

O.Couet  

From: Dmitry Kotov [mailto:dmitriy.kotov_at_gmail.com] Sent: Monday, May 04, 2009 1:30 PM
To: Olivier Couet; roottalk_at_root.cern.ch Subject: Re: [ROOT] How to smooth 3D Spheric plot  

i've already tried all types of SURF but it didn't help much Here's the example of SURF1, which is also difficult to interpret.

I just want to see my LEGO2 plot as it is on the right panel of my PNG but with the smooth net.
Maybe there is another way instead of using these drawing options?

Cheers,
Dmitry

2009/5/4 Olivier Couet <Olivier.Couet_at_cern.ch>

Use SURF1 instead of SURF2.  

From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Dmitry Kotov
Sent: Monday, May 04, 2009 12:28 PM
To: roottalk_at_root.cern.ch
Subject: [ROOT] How to smooth 3D Spheric plot  

Dear all,

I've made a draft of 3D spherical plot, you can see it in attachment. It is plotted both with SURF2 (on the left panel) and LEGO2 (on the right panel) options.

Is it possible to make smooth LEGO2 plot, I mean with smooth contours instead of these square bins. Because SURF2 visualization is difficult to interpret.
Maybe some special drawing option?

With best regards,
Kotov Dmitry       Received on Mon May 04 2009 - 15:01:54 CEST

This archive was generated by hypermail 2.2.0 : Wed May 06 2009 - 05:50:03 CEST