Rank: 88083 based on 0 downloads (last 30 days) and 0 file submitted

Catarina Avelino


Personal Profile:


Watch this Author's files


Comments and Ratings by Catarina Avelino
Updated File Comments Rating
06 Sep 2010 Scalable Vector Graphics (SVG) Export of Figures Converts 3D and 2D MATLAB plots to the scalable vector format (SVG). Author: Juerg Schwizer

I found this tool great except for one thing that for me is not working. If we consider the code:

function exp
[X,Y,Z] = sphere(30);
mesh(X,Y,Z,'facecolor',[0.7 0.7 0.7],'edgecolor','none'); hold on;
A = [0,0,1]';
B = [1,0,0]';
v3 = cross(cross(A,B),A);
t = linspace(0,atan2(norm(cross(A,B)),dot(A,B)));
v = A*cos(t)+v3*sin(t);
view([80, -40])
axis equal, hidden off,
hold off
axis off

we see a sphere with a line drawn where one part lies in front of the sphere and another part lies behind the sphere (the figure has transparency). In the matlab figure there is disctintion of those two different parts on the line colors. In the svg file we saw that there is no distinction of colors, i.e., the color of the line is the same whatever the line is ahead or behind the sphere.

There is a way to create the svg file with different colors for the objects created in front and behind the sphere? Or to make the lines behind dotted?

I would appreciate your help!

Contact us