contour plot - still need help
Foehn
foehn at gmx.at
Tue Dec 4 18:10:10 CST 2007
Hi.
I need a decent black and white graphic with well defined and labeled
isolines; e.g. dashed and thin isloines every 0.05 units and thick and
solid isolines with value label.
As a perfect add-on I would need "H" or "L"-Labels at local maxima or
minima of the function.
My sceleton of an example script is:
%=====================================================
% Using octave 2.9.12 with gnuplot 4.2 patchlevel 0
% on Ubuntu Linux 7.10
%
% Vers. 0.2, (p) by Foehn, 2007-12-05
%
% Example of an isoline plot of a
% 2-dimensional gaussian bell function to
% demonstrate the isoline plot routine of octave
% Missing: dashed subisolines and solid main isolines
% with value labels.
%
clear all; close all;
[x,y]=meshgrid(linspace(-2,+2,100),linspace(-2,+2,100));
z=exp(-(x.*x+y.*y));
vn=[0:0.05:+2]; # vector with isolines
contour(x,y,z,vn);
axis ([-2, +2, -2, +2], "square");
grid on;
title("2D-Gaussian Bell Function");
xlabel("x");ylabel("y");
%print ("cont.eps","-depsc")
%======================================================
Can anybody help me?
Thanks,
Foehn
More information about the Help-octave
mailing list