Re: xplots3D - colorbar [message #67873] |
Wed, 09 September 2009 13:11 |
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  |
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  |
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  |
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
|
|
|