[Top][All Lists]

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

Re: line 0: Can't plot with an empty x range!

From: Joan Picanyol i Puig
Subject: Re: line 0: Can't plot with an empty x range!
Date: Wed, 29 Dec 2004 23:56:48 +0100
User-agent: Mutt/1.5.6i

* Dmitri A. Sergatskov <address@hidden> [20041229 22:35]:
> Dmitri A. Sergatskov wrote:
> >Joan Picanyol i Puig wrote:
> >
> >>I'm getting the message in the subject and can't figure out why, since
> >
> >>    axis([t(1), t(100), -3*median(lw(1,:)), 3*median(lw(1,:))]);
> >
> >axis command does "%g" string formatting when composing range command 
> >for gnuplot.
> >It make only 5 digits precision so you end up with command sent to gnuplot
> >set xrange [24.99500:24.99500]
> >which is bad.
> >
> Changing "%g" -> "%.16g" in axis.m (around line 260) would provide
> gnuplot (at least the version I have) with as much accuracy as it can 
> handle.

Thank you very much for the detailed explanation and the workaround, it
worked. I had spent three hours looking around the __plot*__

> I still deffer it to John to make a final judgment in this case...

If my vote counts, this is a bug.

While I'm at it: what's the precedence for functions definitions in
octave? Can I put a modified copy of axis.m on my working directory
until this gets fixed?


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]