From help-request at octave dot org Wed Dec 29 15:32:36 2004 Subject: Re: line 0: Can't plot with an empty x range! From: "Dmitri A. Sergatskov" To: Joan Picanyol i Puig CC: help at octave dot org Date: Wed, 29 Dec 2004 14:32:32 -0700 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. I still deffer it to John to make a final judgment in this case... Sincerely, Dmitri. -- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------