help-octave
[Top][All Lists]
Advanced

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

Re: legend on contour plot


From: Henry F. Mollet
Subject: Re: legend on contour plot
Date: Sat, 09 Feb 2008 16:21:17 -0800
User-agent: Microsoft-Entourage/11.1.0.040913

I have the same problem. Using peaks() shows that axis should be axis ([-3,
3, -3, 3]) and that the contours should be between -6 and + 6. It appears
that the axis, when using contour (peaks) are based on the default mesh
value N-by-N = 49.

Function File: [X, Y, Z] = peaks (...)
     Generate a function with lots of local maxima and minima. The
     function has the form

     f(x,y) = 3*(1-x)^2*exp(-x^2 - (y+1)^2) ...
              - 10*(x/5 - x^3 - y^5)*exp(-x^2-y^2) ...
              - 1/3*exp(-(x+1)^2 - y^2)

     Called without a return argument, `peaks' plots the surface of the
     above function using `mesh'. If N is a scalar, the `peaks' returns
     the values of the above function on a N-by-N mesh over the range
     `[-3,3]'. The default value for N is 49.

Henry

on 2/9/08 12:09 AM, Marco Caliari at address@hidden wrote:

>> There is no way yet to label the contour lines.. The only legend
>> possible at the moment is with "colorbar()". See
>> 
>> contour(peaks)
>> colorbar
> 
> I see... nothing. White empty room is created on the right, but no color
> bar. Moreover, the axes limits are not correct: a level curve is cutted on
> the top. GNU Octave 3.0.0 for Windows.
> 
> Marco
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave




reply via email to

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