[ncl-talk] Transparency

Rick Brownrigg brownrig at ucar.edu
Wed Dec 3 15:32:40 MST 2014


OK, your script fragment looks good   However, based upon the times at
which wkBackgroundOpacity was implemented versus the dates of NCL release,
it looks like this resource would have been first made broadly available in
6.2.0.   6.2.1 is the most recent NCL version.   Is it possible for you to
upgrade?

And given that, I'm not sure what would have changed between 5.x.x and
6.1.x that made transparent backgrounds unattainable (how did you specify
that?)

Rick

On Wed, Dec 3, 2014 at 3:16 PM, jbuzan <jbuzan at purdue.edu> wrote:

> I’m using NCL6.1.0.
>
> I call the wkstype as a environment variable:
> wkstype = getenv("WKSTYPE”)
> wkstype at wkBackgroundOpacityF = 0.0
> wks = gsn_open_wks(wkstype, outputfile)
>
> warning:wkBackgroundOpacityF is not a resource in the given object
>
> -Jonathan
>
>
>
> On Dec 3, 2014, at 4:13 PM, Rick Brownrigg <brownrig at ucar.edu> wrote:
>
> Hi Jonathan,
>
> Just to be clear, wk* resources are passed into the workstation at the
> time it is created:
>
>     wkstype = "pdf"
>     wkstype at wkBackgroundOpacityF = 0.0
>     wks = gsn_open_wks(wkstype, "myPlotName")
>
> Is that what you've tried?  I also forget when this resource was
> introduced, but its a relatively new feature, so the latest NCL version may
> be needed.
>
> Rick
>
>
> On Wed, Dec 3, 2014 at 1:00 PM, jbuzan <jbuzan at purdue.edu> wrote:
>
>> Hello NCL-talk,
>>
>> I am attempting to make the background on my plots transparent.  However,
>> I believe I am using the wrong resource.
>>
>> res at cnMissingValFillPattern = “transparent”
>> wkstype at wkBackgroundOpacityF = 0.0
>>
>> both give me warnings and do not make the background transparent.
>>
>> I used to be able to have backgrounds transparent in NCL 5.  NCL 6 does
>> not have this feature (or at least it is not default).
>>
>> -Jonathan
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141203/5bf7f9fa/attachment.html 


More information about the ncl-talk mailing list