octave-maintainers
[Top][All Lists]
Advanced

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

Re: Speeding Up gnuplot Interface with Binary Data


From: John W. Eaton
Subject: Re: Speeding Up gnuplot Interface with Binary Data
Date: Wed, 15 Oct 2008 00:37:53 -0400

On 14-Oct-2008, Daniel J Sebald wrote:

| Ben Abbott wrote:
| 
| >> I have problems with 3d plotting with the current hg octave.
| >> E.g. sombrero dumps bunch of control characters to the terminal:
| > 
| > 
| > I see the same thing for gnuplot 4.2.3.
| 
| I came across that too this afternoon.  Here is a patch (meant for hg-head) 
for which I've tested plot, mesh, image and patch.
| 
| Dan

--- __go_draw_axes__.m.orig     2008-10-14 23:08:21.765239774 -0500
+++ __go_draw_axes__.m  2008-10-14 23:15:26.536109703 -0500
@@ -382,7 +382,7 @@
            tmp = undo_string_escapes (__maybe_munge_text__ (enhanced, obj, 
"keylabel"));
            titlespec{data_idx} = cstrcat ("title \"", tmp, "\"");
          endif
-         usingclause{data_idx} = "";
+         usingclause{data_idx} = ["record=" num2str(rows(obj.xdata(:)))];

I think it would be better to use

  sprintf ("record=%d", numel (obj.xdata));

instead.

jwe


reply via email to

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