Contour Example

Contour plots have proven to be very effective for visualization of complex measurement results in publications.

function demo_plot2svg_contour
% Read in topology data
all_data = read_topo('N47E007.hgt');
figure
% Create special colormap
colormap([...
0.0000 0.5000 0.2500; ...
0.1111 0.5556 0.2500; ...
0.2222 0.6111 0.2500; ...
0.3333 0.6667 0.2500; ...
0.4444 0.7222 0.2500; ...
0.5556 0.7778 0.2500; ...
0.6667 0.8333 0.2500; ...
0.7000 0.7000 0.2500; ...
0.6000 0.5000 0.2000; ...
0.5500 0.4000 0.1000; ...
]);
% Draw filled contour plot
contourf(all_data(1000:end,1000:end)',9);
% Draw a colorbar
colorbar
% Call plot2svg to create the SVG plot
plot2svg('demo_contour.svg')

Plot Result of the Contour Example

Pixelgraphics of the SVG Plot.

View the compressed SVG plot
View the SVG plot

Categories