Re: wk resources white

From: Schwedler, Benjamin <bschwedl_at_nyahnyahspammersnyahnyah>
Date: Wed Mar 17 2010 - 11:38:22 MDT

Adam,

Thank you for the information. This did get rid of the errors and also
help me fix the background color of the eps.

Regards,

Ben

On 03/17/2010 01:33 PM, Adam Phillips wrote:
> Hi Ben,
> The wk resources are special, in that they need to be set in the
> workstation creation. Try this:
> type = "ps"
> type@wkBackgroundColor = 0
> type@wkFullBackground = True
> type@wkColorModel = "cmyk"
> wks = gsn_open_wks(type,"output")
>
> Adam
>
> On 03/17/2010 10:28 AM, Schwedler, Benjamin wrote:
>
>> NCLers,
>>
>> I attempting to set the following resources
>>
>> res = True
>> res@wkBackgroundColor = 0
>> res@wkFullBackground = True
>> res@wkColorModel = "cmyk"
>>
>> and producing a plot with
>> plot = gsn_csm_contour_map(wks,refl,res)
>>
>> And receive the following errors
>>
>> warning:wkBackgroundColor is not a valid resource in test_contour at
>> this time
>> warning:wkColorModel is not a valid resource in test_contour at this time
>> warning:wkFullBackground is not a valid resource in test_contour at this
>> time
>>
>> Is this a problem with the plot type? I have tried using ps, eps, and
>> pdf and receive the same error each time. I am also defining my own
>> colormap. Could this be causing a problem?
>> wks = gsn_open_wks("eps","refl")
>> gsn_define_colormap(wks,"myradar")
>>
>> I have attached the entire file below in case more information is needed.
>>
>> Cheers,
>>
>> Ben
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
>

-- 
Benjamin R. J. Schwedler

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Mar 17 12:38:46 2010

This archive was generated by hypermail 2.1.8 : Wed Mar 17 2010 - 13:00:16 MDT