Re: Fwd: reverse the wks foreground and backgroud color

From: Guiting Song <guitingsong_at_nyahnyahspammersnyahnyah>
Date: Mon Jan 07 2013 - 17:03:14 MST

Hi, Rick,

Thanks a lot for your reply.

I found the mistakes now, only default the sentence :

gsn_define_colormap(wks, "gsltod")

Because it double define the colormap, I think.

On Mon, Jan 7, 2013 at 5:10 PM, Rick Brownrigg <brownrig@ucar.edu> wrote:

> Hi,
>
> I think you can only set those resource when the workstation is created.
> Type adding the to your variable "type" before the call to gsn_openwks()
>
> ex:
>
> type = "x11"
> type@wkForegroundColor = …
> type@wkBackgroundColor = ….
>
> Hope that helps…
> Rick
>
> On Jan 7, 2013, at 4:06 PM, Guiting Song <guitingsong@gmail.com> wrote:
>
> Dear NCL users,
>
> I am trying to plot topography using the black and white color table
> "gsltod", however, after plotting, I found the foreground color of the
> workstation is white, and the background color is black, I try to reverse
> them by using the following script:
>
> setvalues wks
> "wkColorMap" : "gsltod"
> "wkForegroundColor" : (/0.,0.,0./)
> "wkBackgroundColor" : (/1.,1.,1./)
> end setvalues
>
> However, it does not work, I attached the script, any advice is welcomed!
>
>
> --
> Best regards, Guiting
> -----------------------------------------------------------------------
> *Departamento de Astronomia, Universidad de Guanajuato
> Callejon de Jalisco s/n
> Colonia de Valenciana
> C.P. 36240, Guanajuato,GTO, Mexico*
> *E-mail: gtsong@astro.ugto.mx**;guitingsong@gmail.com*
> **
> <wrf_wps_ter6.ncl>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>

-- 
Best regards, Guiting
-----------------------------------------------------------------------
*Departamento de Astronomia, Universidad de Guanajuato
Callejon de Jalisco s/n
Colonia de Valenciana
C.P. 36240, Guanajuato,GTO, Mexico*
*E-mail: gtsong@astro.ugto.mx**;guitingsong@gmail.com*
**

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jan 7 17:03:24 2013

This archive was generated by hypermail 2.1.8 : Mon Jan 14 2013 - 14:31:38 MST