help-octave
[Top][All Lists]
Advanced

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

Re: Legend help


From: Quentin Spencer
Subject: Re: Legend help
Date: Tue, 07 Nov 2006 14:16:30 -0600
User-agent: Thunderbird 1.5.0.7 (X11/20061027)

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]