octave-maintainers
[Top][All Lists]
Advanced

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

Re: contour with latest CVS and gnuplot 4.0


From: David Bateman
Subject: Re: contour with latest CVS and gnuplot 4.0
Date: Fri, 23 Mar 2007 15:07:39 +0100
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

John W. Eaton wrote:
> On 23-Mar-2007, David Bateman wrote:
>
> | I get no output with
> | 
> | [x,y] = meshgrid(-10:10); z =1./sqrt(x.^2 + y.^2); contour(z)
> | 
> | or with
> | 
> | [x,y] = meshgrid(-10:10); z =1./sqrt(x.^2 + y.^2); contour(x,y,z)
> | 
> | with a recent CVS and gnuplot 4.0. Is this expected? If it is expected
> | is there a way around it?
>
> The contour function was changed recently to use the contour functions
> from octplot to generate the contour lines which are then plotted
> using 2-d plotting commands (the line function).  The first thing that
> happens in a call like
>
>   contour (z)
>
> is
>
>   [c, lev] = contourc (z);
>
> For your Z, I see
>
>   c = [](2x0)
>   lev =
>
>      Inf   Inf   Inf   Inf   Inf   Inf   Inf   Inf   Inf   Inf
>
> and there is nothing to plot.  I haven't looked to see why this might
> be happening.
>
> jwe
>
>   
Ok it seems that contourc doesn't handle "Inf"'s.. This

 [x,y] = meshgrid(-10:10); z =1./sqrt(x.^2 + y.^2); z(11,11) = 2;
contour(x,y,z)

works..

D.

-- 
David Bateman                                address@hidden
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



reply via email to

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