AW: Re: Plotting semi-trasnparent patches?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

AW: Re: Plotting semi-trasnparent patches?

Kai Habel-6


-- Ursprüngl. Mitteil. --
Betreff: Re: Plotting semi-trasnparent patches?
Von: "John W. Eaton" <[hidden email]>
Datum: 29.01.2009 19:23

On 29-Jan-2009, Kai Habel wrote:

| Since Ben has pushed the __gnuplot_has_feature__() function, I have
| slightly changed the changeset to enable transparent patches. After
| applying the changeset and using gnuplot 4.3. you can test it with e.g.:
|
| x = [0 1 1 0];y=[0 0 1 1];
| patch(x,y,'red');
| p=patch(x+0.5,y+0.5,'yellow');
| for i=0:0.05:1,set(p,'facealpha',i);end
|
| Kai

OK, I applied this changeset, but I don't see it working for me, or I
don't understand what is meant by "transparency".  Even when I do

  for i=0:0.05:1,set(p,'facealpha',i); drawnow (); pause (1); end

so I can clearly see each step, the yellow patch changes in intensity,
but it always obscures the part of the red patch that it overlaps.

This happens with both gnuplot 4.2.2 (as expected, since the test for
the transparency feature returns 0) and 4.3.0 (built from gnuplot CVS
sources that were updated in the last hour).

jwe
This is strange it has worked for me, I will have a look at this tomorrow
Kai


Reply | Threaded
Open this post in threaded view
|

AW: Re: Plotting semi-trasnparent patches?

John W. Eaton
Administrator
On 29-Jan-2009, [hidden email] wrote:

| This is strange it has worked for me, I will have a look at this tomorrow

Are you using the x11 or wxt terminal or something else?

jwe
Reply | Threaded
Open this post in threaded view
|

Re: AW: Re: Plotting semi-trasnparent patches?

Kai Habel-6
John W. Eaton schrieb:
> On 29-Jan-2009, [hidden email] wrote:
>
> | This is strange it has worked for me, I will have a look at this tomorrow
>
> Are you using the x11 or wxt terminal or something else?
>
> jwe
>  
Running today's developer version of octave and gnuplot and the wxt
terminal it still works for me. I hope you are using the X11 terminal.
Since, when reading the docs for gnuplot 4.3, I see that X11 terminals
are not fully supported with respect to transparency. But wxt, pdf, svg,
and png are (see below).

Kai


http://gnuplot.sourceforge.net/docs_4.3/gnuplot.pdf
74.61.3.1 Set style fill transparent

Terminal solid pattern pm3d
gif no yes no
jpeg yes no yes
pdf yes yes yes
png TrueColor index yes
post no yes no
svg yes no yes
wxt yes yes yes
x11 no yes no

Reply | Threaded
Open this post in threaded view
|

Re: AW: Re: Plotting semi-trasnparent patches?

John W. Eaton
Administrator
On 30-Jan-2009, Kai Habel wrote:

| John W. Eaton schrieb:
| > On 29-Jan-2009, [hidden email] wrote:
| >
| > | This is strange it has worked for me, I will have a look at this tomorrow
| >
| > Are you using the x11 or wxt terminal or something else?
| >
| > jwe
| >  
| Running today's developer version of octave and gnuplot and the wxt
| terminal it still works for me. I hope you are using the X11 terminal.
| Since, when reading the docs for gnuplot 4.3, I see that X11 terminals
| are not fully supported with respect to transparency. But wxt, pdf, svg,
| and png are (see below).

OK, I now see it works with the wxt terminal.

Thanks,

jwe