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

Home » Public Forums » archive » colored vector plots
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
colored vector plots [message #87861] Fri, 28 February 2014 07:08 Go to previous message
anil is currently offline  anil
Messages: 34
Registered: August 2009
Member
Dear all,
What is the most efficient way to do colored vector plots (representing colors corresponding to their magnitude). I currently use 'msvelovect.pro' to plot vectors on map projections, but i can not seem to color them.
Currently i just say msvelovect,u,v,lon,lat,colors=?!?something
I guess there is not much color option in this one, so I tried partvelvec.pro, but i could not succeed there either. I defined my lon, lat,u and v are the same size = (76,51). I tried to scale_vector and cgscalevector as:
colors=cgscalevector((indgen(n_elements(u(0:75,0:50)))),0,25 5)
and then partvelvec,u,v,lat,lon,veccolors=colors, but it gives errors such as:
CGDEFAULTCOLOR: Cannot determine a color from a value of 0.131613 of data
% CGDEFAULTCOLOR: Cannot determine a color from a value of 0.197419 of data

Could anyone please suggest a solution?
Thanks in advance,
Anil
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mavericks: NG plots start out black
Next Topic: How to align two images IDL

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

Current Time: Wed Oct 08 15:32:50 PDT 2025

Total time taken to generate the page: 0.00471 seconds