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 
Return to the default flat view Create a new topic Submit Reply
Re: Gridding Wizard preview [message #71535] Mon, 28 June 2010 12:56 Go to previous message
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
[Message index]
 
Read Message
Read Message
Read Message
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: Fri Oct 10 13:34:12 PDT 2025

Total time taken to generate the page: 0.96140 seconds