[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: surf()/mesh() broken ?
From: |
John W. Eaton |
Subject: |
Re: surf()/mesh() broken ? |
Date: |
Wed, 26 Jan 2005 22:29:12 -0500 |
On 20-Jan-2005, Dmitri A. Sergatskov <address@hidden> wrote:
| Emmanuel Vazquez wrote:
| > Bug report for Octave 2.1.64 configured for i386-pc-linux-gnu
| >
| > Description:
| > -----------
| >
| > Functions surf() and mesh() seem broken in the Debian packaged 2.1.64
| > version of octave
| >
| > For example
| > surf(peaks)
| > produces the following result on its first call
| >
| > ----
| > sp '/tmp/oct-quoAnd' u 1:2:3 t "line 1"
| > ^
| > line 0: no functions or data to plot
| > ----
| >
| > However the file '/tmp/oct-quoAnd' is present and is readable.
| >
|
| This is related to
| http://www.octave.org/octave-lists/archive/help-octave.2005/msg00070.html
| (that is why I x-posted to the "help" list, though the discussion should be
| in the "bug" list)
|
| The command line for splot:
|
| sp '/tmp/oct-quoAnd' u 1:2:3 t "line 1"
|
| is wrong for the data file (it has only one column of data, hence "1:2:3"
format is wrong)
| I do not know what has changed: data file format, or code that generates
| the command line for gnuplot...
|
| It is definitely a bug.
Yep.
Please try the following patch.
Thanks,
jwe
src/ChangeLog:
2005-01-26 John W. Eaton <address@hidden>
* pt-plot.cc (handle_plot_data): Use the correct using clause for
non-parametric 3D plots.
Index: src/pt-plot.cc
===================================================================
RCS file: /usr/local/cvsroot/octave/src/Attic/pt-plot.cc,v
retrieving revision 1.146
diff -u -r1.146 pt-plot.cc
--- src/pt-plot.cc 18 Oct 2004 16:27:44 -0000 1.146
+++ src/pt-plot.cc 27 Jan 2005 03:22:35 -0000
@@ -760,7 +760,8 @@
plot_buf << " '" << file << "' "
<< Vgnuplot_command_using
- << (ndim == 2 ? " 1:2" : " 1:2:3");
+ << (ndim == 2 ? " 1:2"
+ : (parametric_plot ? " 1:2:3" : " 1"));
}
}
}
-------------------------------------------------------------
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
-------------------------------------------------------------