Re: Fwd: reverse the wks foreground and backgroud color

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Mon Jan 07 2013 - 16:10:01 MST

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

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

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