comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: How to load a customized color table?

How to load a customized color table?
type: item
description: Dear all I've tried to load a customized color table with "TVLCT" in a procedure. I called this procedure from another one, but the plot generated uses B-W color table instead of a red-blue one. I can't get this thing work. Can anyone tell me where go wrong? The code is attached below. pro ctloader ;loadct,25 ;COMMON COLORS, R_Orig, G_Orig, B_Orig, R_curr, G_curr, B_curr COMMON COLORS, r, g, b, R_curr, G_curr, B_curr print,"This is ctloader." r=dblarr(256) r[0:127]=reverse(2.0*findgen(128)) r[128:255]=0.0 R_curr=r b=dblarr(256) b[0:127]=0.0 b[128:255]=2.0*findgen(128) B_curr=b g=dblarr(256) g=0.0 G_curr=g tvlct,r,g,b end
creator: ICBM0926
date: 2009-01-10T17:22:39-00:00