[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
contour plot - still need help
From: |
Foehn |
Subject: |
contour plot - still need help |
Date: |
Wed, 05 Dec 2007 01:10:10 +0100 |
User-agent: |
Thunderbird 1.5.0.14pre (X11/20071022) |
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
- contour plot - still need help,
Foehn <=