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: Daniel J Sebald
Subject: Re: Speeding Up gnuplot Interface with Binary Data
Date: Wed, 15 Oct 2008 00:06:43 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020

John W. Eaton wrote:
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.

Oh, numel(), yeah that works.  I used the [string string] construct thinking it 
is faster than a sprintf() function call, but it's not that important anyway in 
this case.

Dan


reply via email to

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