[ncl-talk] RasterFill transparency

Alan Brammer abrammer at albany.edu
Thu Sep 11 13:40:33 MDT 2014


Thanks Dave. Interesting that that work around exists. Unfortunately
doesn't apply in the actual use I have in mind but it's fine for now. If
it's possible to stay informed of any progress I'd appreciate that.

Alan.
On 10 Sep 2014 19:06, "David Brown" <dbrown at ucar.edu> wrote:

> Hi Alan,
> I have been looking at this issue and there is clearly something wrong.
> The only color that seems to be completely transparent when set for a
> raster fill plot is transparent black (0,0,0,0). That does mean there is a
> work-around fix for your specific test case: just change line 63 from
> reds(:30,3) = 0.
> to
> reds(:30,:) = 0.
>
> We will figure out the overall issue as soon as possible.
>  -dave
>
> On Tue, Sep 9, 2014 at 4:26 PM, Brammer, Alan P <abrammer at albany.edu>
> wrote:
>
>>  ​Sorry -- That first link was the wrong paste:
>>
>>
>> http://www.atmos.albany.edu/student/abrammer/transtest/transtest_RasterFill_FillOpac.png
>>>>
>>
>>
>>  Alan.
>>  ------------------------------
>> *From:* ncl-talk-bounces at ucar.edu <ncl-talk-bounces at ucar.edu> on behalf
>> of Alan Brammer <abrammer at albany.edu>
>> *Sent:* Tuesday, September 9, 2014 5:34 PM
>> *To:* ncl-talk at ucar.edu
>> *Subject:* [ncl-talk] RasterFill transparency
>>
>>   Ran into an issue today that probably requires some developer input.
>>
>>  Objective 2 shaded contour plots, with variable transparencies to view
>> 2 variables on top of each other.
>>
>>  This works as desired in CellFill but is not aesthetically pleasing due
>> to the blockiness.
>> AreaFill also works but has some weird vertical lines that pop up in
>> random places (and takes an age to plot).
>> RasterFill does not seem to support RGBA with cnFillPalette or
>> cnFillColors a halfway workaround works with cnFillOpacityF  but following
>> on from the thread the other day this only works with all or none of the
>> colors.
>>
>>  So main question should/can RasterFill support the A in RGBA
>> colortables.  It seems the functionality is there just maybe a break in the
>> chain somewhere.
>>
>>  plots:
>>
>> RasterFill w/ cnFillOpacityF  semi transparent everywhere   -->
>>
>> http://www.atmos.albany.edu/student/abrammer/transtest/transtest_CellFill.png
>>
>>
>>  Cell-fill  What I want but without the blockiness   -->
>> http://www.atmos.albany.edu/student/abrammer/transtest/transtest_CellFill.png
>>
>>
>>  RasterFill w/ RGBA  same resources as cell-fill but fails completely.
>>  -->
>>
>> http://www.atmos.albany.edu/student/abrammer/transtest/transtest_RasterFill_rgba.png
>>
>>
>>  Code, data and plots here:
>> http://www.atmos.albany.edu/student/abrammer/transtest/
>>
>>
>>  Trialed using both 6.2.1 and 6.2.0
>> on  x86_64-redhat-linux with gcc version 4.1.2
>>
>>  Thanks,
>> Alan
>>
>> _______________________________________________
>> 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/20140911/4763cbf6/attachment.html 


More information about the ncl-talk mailing list