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

Home » Public Forums » archive » Re: xplots3D - colorbar
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: xplots3D - colorbar [message #67884 is a reply to message #67878] Tue, 08 September 2009 10:50 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Sep 8, 2:43 pm, pp <pp.pente...@gmail.com> wrote:
> On Sep 8, 7:21 am, "Thibault ." <garthalg...@yahoo.fr> wrote:
>
>> Hi,
>
>> I can't figure out how to use xplot3d with IDLgrcolorbar.
>> I created a color table (scaling with my data values) and i want to
>> apply it to a 3D plot but I don't know what to do!!
>> If anyone's got an idea...
>> Thanks
>
> It is much easier to it with iplot, instead of xplot3d. For instance:
>
> x=findgen(10) & y=x & z=x & colors=x*255/9.
> iplot,x,y,z,vert_colors=colors,/insert_colorbar,rgb_table=1

That is using a standard table (1). If you made your own colortable,
pass it (3x256 or 256x3 array) as the value of rgb_table.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: clipping of arrow
Next Topic: Slither 1.0 released

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

Current Time: Fri Oct 10 13:04:42 PDT 2025

Total time taken to generate the page: 0.79531 seconds