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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: xplots3D - colorbar [message #67873] Wed, 09 September 2009 13:11
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.
Re: xplots3D - colorbar [message #67878 is a reply to message #67873] Wed, 09 September 2009 03:33 Go to previous message
Thibault . is currently offline  Thibault .
Messages: 9
Registered: September 2009
Junior Member
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?
Re: xplots3D - colorbar [message #67884 is a reply to message #67878] Tue, 08 September 2009 10:50 Go 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.
Re: xplots3D - colorbar [message #67886 is a reply to message #67884] Tue, 08 September 2009 10:43 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
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
  Switch to threaded view of this topic Create a new topic Submit Reply
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 13:59:46 PDT 2025

Total time taken to generate the page: 0.00185 seconds