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

Home » Public Forums » archive » display position arrays on an image
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: display position arrays on an image [message #88812 is a reply to message #88811] Mon, 23 June 2014 08:54 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Monday, June 23, 2014 5:43:38 AM UTC-5, g.na...@gmail.com wrote:
> I used the VECCOLORS keyword to make the vectors but it always be black or white. I used information from here to create the color: http://www.idlcoyote.com/color_tips/getcolor.php
>
>
> Yellow = [255,255,0]
>
> cgDrawVectors, x, y, pos_x, pos_y,fraction=0.001, VECCOLORS= yellow, /ORDERED, /OVERPLOT
>
>
>
> The vectors are still white.

I think you need to read a little more carefully:

VECCOLORS in optional
A scalar or vector of colors the same size as velx. May be bytes, short integers, or strings. Bytes and short integers are treated as indices into the current color table. The default is "opposite".

You're providing short integers, so it's reading indices.

Either put the colors you want in the current color table, or simply provide the string(s) of the color:
cgDrawVectors, x, y, pos_x, pos_y,fraction=0.001, VECCOLORS= 'yellow', /ORDERED, /OVERPLOT
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: read lambert projected image
Next Topic: IDL 8.2 IDL_IDLBridge & abortion

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

Current Time: Wed Oct 08 19:31:03 PDT 2025

Total time taken to generate the page: 0.00190 seconds