comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Gridding Wizard preview
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Gridding Wizard preview [message #71535] Mon, 28 June 2010 12:56
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jun 28, 4:19 pm, Ally <ally.desh...@gmail.com> wrote:
> I want it to look exactly like the preview.  My points are pretty
> densely distributed so there's a clump but when I plot in in iplot it
> is just a line and when I plot it in icontour it looks nothing like
> the preview.  And neither iplot no icontour plot it in color.  How do
> I fix this?

If they are dense enough, an iimage will look about the same. To make
the iplot with the colors given by the value at each point, use
something like

iplot,x,y,vert_colors=bytscl(z),/
scatter,sym_index=6,sym_thick=2.,rgb_table=rgb_table

where rgb_table is either the colortable number (if one of the default
tables), or the table itself (a [3,256] or a [256,3] byte array). The
one used in the gridding wizard is the rainbow table (13), not a good
one.

Colors for contours are specified in a similar way:

zmin=min(z,max=zmax)
nl=10
values=zmin+(zmax-zmin)*dindgen(nl)/(nl-1d0)
colors=dindgen(nl)*255/(nl-1d0)
icontour,n_levels=nl,c_value=values,rgb_indices=colors,rgb_t able=rgb_table
Re: Gridding Wizard preview [message #71536 is a reply to message #71535] Mon, 28 June 2010 12:19 Go to previous message
Ally is currently offline  Ally
Messages: 13
Registered: June 2010
Junior Member
On Jun 28, 11:30 am, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Jun 28, 12:03 pm, Ally <ally.desh...@gmail.com> wrote:
>
>> When the gridding wizard launches in any of the iTools there is the
>> nice preview graph that is color coded and has a key on the right hand
>> side.  Is there any way to get the program to graph that graph
>> itself?
>
> The preview is a 2D plot with each point in x,y as a square colored by
> its z value (as iplot would make), with a contour plot over it (as
> icontour would make). Depending on how densely distributed your points
> are, this may look more like a continuous image (as image would make).
> You just need to use tool that gives you the kind of visualization you
> want.

I want it to look exactly like the preview. My points are pretty
densely distributed so there's a clump but when I plot in in iplot it
is just a line and when I plot it in icontour it looks nothing like
the preview. And neither iplot no icontour plot it in color. How do
I fix this?
Re: Gridding Wizard preview [message #71544 is a reply to message #71536] Mon, 28 June 2010 08:30 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jun 28, 12:03 pm, Ally <ally.desh...@gmail.com> wrote:
> When the gridding wizard launches in any of the iTools there is the
> nice preview graph that is color coded and has a key on the right hand
> side.  Is there any way to get the program to graph that graph
> itself?

The preview is a 2D plot with each point in x,y as a square colored by
its z value (as iplot would make), with a contour plot over it (as
icontour would make). Depending on how densely distributed your points
are, this may look more like a continuous image (as image would make).
You just need to use tool that gives you the kind of visualization you
want.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: triangels may be don't show the right value
Next Topic: resample

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:50:38 PDT 2025

Total time taken to generate the page: 0.00628 seconds