help-octave
[Top][All Lists]
Advanced

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

transparent surfaces


From: fibonacci4
Subject: transparent surfaces
Date: Wed, 29 Mar 2017 09:18:42 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

I asked this question on stackoverflow, since there I can show the plots:

<http://stackoverflow.com/questions/43064837/octave-transparent-surfaces-how>

I try to plot transparent surfaces in Octave using facealpha set to 0.2. Ok, I have read that this is not implemented, but if I run this code, I get a plot with a transparent plane.

close all;
clf reset;
cla reset;
graphics_toolkit("gnuplot");
colormap(bone(64));
a1=-1;b=1;h1=0.01;# making a mesh
x=a1:h1:b; x2=a1:h1:b; nz2=length(x2);
[X1,Y1]=meshgrid(x2,x2);
Z1=zeros(nz2,nz2); # function equal to zero on the mesh
s1=mesh(X1,Y1,Z1);
 view([120 40]);
# properties of the faces and edges 
set(s1,'edgecolor','none')
set(s1,'facecolor','black')
set(s1,'facealpha',0.05)
hold on
scatter3([-0.5 0],[-0.5 0],[0.5 -0.5],8,'k','.');# two points one above and one below the plane
 # print to eps
 print -deps testsurface.eps

 
Doing this a plot pops up, where the plane is transparent; but the result of the print command gives a non-transparent
plane, the point below it cannot be seen.
I tried it with fltk, same result, with qt no plane at all.

I would like to print it with the print command, since there are many options, size etc.
Any ideas?

Thanks
Karl

reply via email to

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