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

Home » Public Forums » archive » iplot colorbar label
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
iplot colorbar label [message #67877] Wed, 09 September 2009 07:42 Go to previous message
Thibault . is currently offline  Thibault .
Messages: 9
Registered: September 2009
Junior Member
Hi,

Using iplot as a scatter plot, I assign colors to the data points
according to an array (using vert_colors) and I want to create the
corresponding colorbar with /insert_colorbar:


x=randomu(41,10)
y=randomu(50,10)

my_col=[150,255,12,160,187,245,36,58,210,170]

iplot,x,y,/insert_colorbar,rgb_table=39,sym_index=4,/
scatter,vert_colors=my_col


Doing that, the plot works and the colorbar is displayed BUT the
colorbar label goes from 0 to 1. I noticed that it goes from min to
max values of the y variable... whereas I want the label to span what
it really represents, namely the my_col array !!!

How to make the colorbar label ranging from 0 to 255 ( = the my_col
array min and max values) ?

Thank you.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Legend for plot
Next Topic: Segmentation Fault: XQuartz update

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

Current Time: Wed Oct 08 13:44:09 PDT 2025

Total time taken to generate the page: 0.00486 seconds