Colorbar Formatting Issue with New IDL 8.4 Graphics [message #91574] |
Thu, 30 July 2015 08:12  |
elyssa.f.hofgard
Messages: 1 Registered: July 2015
|
Junior Member |
|
|
I have been trying to create a colorbar to correspond to a sea level pressure anomaly map in the new IDL graphics.
I would like the colorbar to show zero as white, as the switch between the blue (negative) and red (positive) color scheme and values.
However, as the data range is from about -11 to 12 hPa, when I create the colorbar and place it on the map using TARGET, it does not show zero as white.
I have tried creating a colorbar using a custom range, however when I place it on the map it uses the data range to create the colorbar.
Thanks!
Elyssa
|
|
|
Re: Colorbar Formatting Issue with New IDL 8.4 Graphics [message #91587 is a reply to message #91574] |
Mon, 03 August 2015 14:03  |
chris_torrence@NOSPAM
Messages: 528 Registered: March 2007
|
Senior Member |
|
|
On Thursday, July 30, 2015 at 9:12:32 AM UTC-6, elyssa.f...@noaa.gov wrote:
> I have been trying to create a colorbar to correspond to a sea level pressure anomaly map in the new IDL graphics.
> I would like the colorbar to show zero as white, as the switch between the blue (negative) and red (positive) color scheme and values.
> However, as the data range is from about -11 to 12 hPa, when I create the colorbar and place it on the map using TARGET, it does not show zero as white.
> I have tried creating a colorbar using a custom range, however when I place it on the map it uses the data range to create the colorbar.
>
> Thanks!
> Elyssa
Hi Elyssa,
Can you post some sample code showing the problem?
I assume you are using either the Image or Contour function for your actual graphics? If so, you probably want to use the RGB_TABLE property to set the actual color table for the contour (or image) so that it has the white color at the correct location within the color table. Then, when you use colorbar with "target", it should just reflect the colors in the contour/image.
Cheers,
Chris
VIS
|
|
|