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
Re: iplot colorbar label [message #68015 is a reply to message #67877] Thu, 10 September 2009 04:16 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Sep 10, 7:11 am, "Thibault ." <garthalg...@yahoo.fr> wrote:
> Thanks for the routine!
>
> Indeed, I dont want the label to be the color index.
> I set my color table to a third variable z ( x and y are the
> positions).
> my_col = fix(z * 255/(max(z)-min(z)))   where z spans the range 50 to
> 800.
> I think that writing this makes the plot that i want, attributing to
> each point defined by x and y in position, the appropriate color
> according to the z value.
> Then, using your pp_colorbar_range.pro routine by setting:
>
> iplot,x,y,/insert_colorbar,rgb_table=39,sym_index=3,/
> scatter,vert_colors=my_col
> pp_colorbar_range,[min(z),max(z)],font_size=12
>
> it gives something which seems to make sense... I hope it does :)
>
> In which way the keyword colors=colors is useful??
>
> Furthermore, do you have any idea how to save the iplots as postscript
> files?

There is no colors keyword for iplot, that I am aware of.There is
color, which is used to set the color of the plot line by its rgb
values (a constant color, while vert_colors sets the color at each
vertex.

In IDL 7.1, you can save the current itool to isv, ps, eps, and a
bunch of other formats with

isave,'file.ps'

It guesses the format by the extension in the file name.

Before 7.1, you can, in the iplot window, go to the menu file->export-
> to data file, if I remember right (in 7.1 it is in file->save).
[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: Fri Oct 10 09:39:54 PDT 2025

Total time taken to generate the page: 1.03980 seconds