[Top][All Lists]

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

Re: Legend help

From: Ron Crummett
Subject: Re: Legend help
Date: Tue, 07 Nov 2006 20:40:03 -0800
User-agent: Thunderbird (Windows/20060909)

Thanks. One more question: I have never applied a patch before; how do I do it?

Quentin Spencer wrote:
Ron Crummett wrote:
That sounds like a good idea. But is legend.m in the Octave distribution? I downloaded 2.9.9 and unpacked it but didn't see a legend function. I did find one in the Octave-forge release but I am using the most recent version of that, and have this problem.

If there are other methods I'm willing to try them, but may need some pointers on setting things up.

The legend function was fixed in octave-forge CVS shortly after the most recent release. The attached patch fixes it:


Index: main/plot/legend.m
RCS file: /cvsroot/octave/octave-forge/main/plot/legend.m,v
retrieving revision 1.16
diff -u -r1.16 legend.m
--- main/plot/legend.m  14 Apr 2006 12:51:14 -0000      1.16
+++ main/plot/legend.m  11 Jul 2006 16:09:07 -0000
@@ -195,7 +195,8 @@
   shell_cmd=["grep \"^", gnuplot_command_plot, " \" '", tmpfilename, "' | ", \
              "sed -e 's/,/ , /g' -e 's/\"/ \" /g'", " | ", \
              "awk '", awk_prog, "'"];
-  [status, plot_cmd] = split(system(shell_cmd),"\n");
+  [status, output] = system(shell_cmd);
+  plot_cmd = split(output,"\n");
# Remove state file and sync file

reply via email to

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