help-octave
[Top][All Lists]
Advanced

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

Re: plot3 plots surface rather than line


From: John W. Eaton
Subject: Re: plot3 plots surface rather than line
Date: Wed, 28 Sep 2005 15:58:46 -0400

On 28-Sep-2005, address@hidden wrote:

| Yes!  This is exactly the problem that I'm experiencing.  Is the
| only solution to downgrade to something less than 2.1.71?

No, sometimes bugs can be fixed.

Try the following patch to the __plt3__ function from octave-forge.

See http://www.octave.org/mailing-lists/octave-graphics/2005/52 for an
explanation about why this change is needed.  Are there any other
functions in octave-forge that try to set (no)parametric with
__gnuplot_raw__?  If so, they should also be fixed.

jwe


--- __plt3__.m~ 2005-09-28 15:55:19.000000000 -0400
+++ __plt3__.m  2005-09-28 15:55:41.000000000 -0400
@@ -42,7 +42,7 @@
   endif
 
   unwind_protect
-    __gnuplot_raw__ ("set parametric;\n");
+    __gnuplot_set__ parametric;
     __gnuplot_raw__ ("set nohidden3d;\n");
     for i=1:columns(x)
       tmp = [x(:,i), y(:,i), z(:,i)];
@@ -50,6 +50,6 @@
       eval (cmd);
     endfor
   unwind_protect_cleanup
-    __gnuplot_raw__ ("set noparametric;\n"); 
+    __gnuplot_set__ noparametric; 
   end_unwind_protect
 endfunction



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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