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

Home » Public Forums » archive » cgScaleVector and diverging colorbar help
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
cgScaleVector and diverging colorbar help [message #91284] Thu, 25 June 2015 08:59 Go to previous message
sam.tushaus is currently offline  sam.tushaus
Messages: 14
Registered: February 2015
Junior Member
Hello all! I'm trying to create a plot with a diverging colorbar. I would like white to correspond to 0, and my data is typically in the range [-5,70] on a latitude-longitude grid.

I've been using this page (http://www.idlcoyote.com/code_tips/scaleimage.html) as a reference. The first problem comes when I try to use cgImage to display my scaled data - the map becomes highly distorted. Is there any way to fix this?

My second problem comes when I try to use cgContour to display my scaled data instead of cgImage. The contouring looks generally correct, but the whole range of the colorbar is used in the contouring. This is a problem because my data range is [-5,70] and I want 0 to be white.

I really appreciate any comments or hints on how to fix this. Thanks!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FG image change
Next Topic: Storing values in array after each iteration in for loop

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

Current Time: Wed Oct 08 13:46:56 PDT 2025

Total time taken to generate the page: 0.00374 seconds