[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: contour changes the number of levels

From: Miquel Cabanas
Subject: Re: contour changes the number of levels
Date: Wed, 23 Apr 2003 14:48:34 +0200
User-agent: Mutt/1.3.28i


On Wed, Apr 23, 2003 at 12:08:27PM +0200, Niels L. Ellegaard wrote:
> I am trying to use octave to make a contour plot, but I have a little
> problem. My problem is that the function contour seems to change the
> number of contour levels. Is this supposed to happen or is it a bug?

it's a feature :-)

> octave:6> contour(x,y,z)

contour is an octave function ---type 'which contour' at the
octave prompt to find where contour.m lives in your computer or
'type contour' to see its content--- that depending on the number
of arguments sets several gnuplot parameters, e.g. the number of
levels, and then plots the data.

If you want a fixed number of levels, say 40, then try using,

contour(x,y,z, 40)

it should do the job.


Miquel E Cabanas ------------------------------------------------------
SeRMN, Universitat Autonoma de Barcelona (address@hidden)

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]