Surface Example

Unfortunately, SVG does not support bilinear color fills. Therefore, the convertion of Matlab patches is not straight forward. In addition, figures with patches generally contain a large number of elements. This puts some restriction on the usage of overlays to emulate a bilinear shading. The usage of color filters is inadequate due to speed limitations.


function demo_plot2svg_surf
% Read in topology data
all_data = read_topo('N47E007.hgt');
figure
s = surf(all_data(1000:4:end, 1000:4:end)');
% Use colored edges
set(s,'EdgeColor','interp');
% Set faces transparent
set(s,'FaceAlpha',0.5);
plot2svg('demo_surf.svg')

Plot Result of the Surface Example

Pixelgraphics of the SVG Plot.

View the compressed SVG plot
View the SVG plot

Categories