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 #67873] Wed, 09 September 2009 13:11 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Sep 9, 7:33 am, "Thibault ." <garthalg...@yahoo.fr> wrote:
> Thanks a lot for your answers!
>
>>> x=findgen(10) & y=x & z=x & colors=x*255/9.
>>> iplot,x,y,z,vert_colors=colors,/insert_colorbar,rgb_table=1
>
> OK for iplot!
>
>> 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.
>
> OK, what is the command? iplot,x,y,z,rgb_table=my_colortable,/
> insert_colorbar  ?
> Do I need the color=....  keyword?

Something like

iplot,x,y,z,vert_colors=colors,/
insert_colorbar,rgb_table=my_colortable

Where my_colortable is a 3x256 or 256x3 array with the r,g,b values
for each of the 256 color indexes.
[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: Wed Oct 08 19:57:18 PDT 2025

Total time taken to generate the page: 0.00425 seconds