[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: does facealpha work?

From: Francesco Potortì
Subject: Re: does facealpha work?
Date: Fri, 25 Jul 2014 16:30:50 +0200

>I have tried fill() and 'FaceAlpha" property, but cannot obtain the
>results I want.  By changing facelpha i can change the colour, which
>becomes paler, but not transparent, as the filled areas below cannot be
>seen.  I use the gnuplot backend.
>Is there anything obvious that I should know?  Do I need to provide an
>example or is this a known problem?

Here is an example:

hold on
p1 = patch([0 0 2], [0 2 1], "r")
p2 = patch([2 2 0], [0 2 1], "g")
hold off

This draws two partially overlapping triangles of different colours, as
expected.  Now I set the facealpha property on both to make them
partially transparent:

set (p1, "facealpha", 0.2)
set (p2, "facealpha", 0.2);

Both colours become less saturated, but they remain opaque.  Is this a

Francesco Potortì (ricercatore)        Voice:  +39.050.621.3058
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Skype:  wnlabisti
(entrance 20, 1st floor, room C71)     Web:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]