[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
- Legend help, Ron Crummett, 2006/11/06
- Re: Legend help, Joe Koski, 2006/11/07
- Re: Legend help, Ron Crummett, 2006/11/07
- Re: Legend help, Søren Hauberg, 2006/11/07
- Re: Legend help, Dmitri A. Sergatskov, 2006/11/07
- Re: Legend help, John W. Eaton, 2006/11/08
- Re: Legend help, Quentin Spencer, 2006/11/10
- Re: Legend help, John W. Eaton, 2006/11/10
- Re: Legend help,
Quentin Spencer <=
- Re: Legend help, Ron Crummett, 2006/11/07
- Re: Legend help, Quentin Spencer, 2006/11/07