[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch to hist for changes in bar
From: |
David Bateman |
Subject: |
Patch to hist for changes in bar |
Date: |
Wed, 25 Apr 2007 21:20:09 +0200 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060921) |
As bar can now return the figure handle, hist should be slightly
changes. See the attached patch
D.
Index: scripts/plot/hist.m
===================================================================
RCS file: /usr/local/cvsroot/octave/scripts/plot/hist.m,v
retrieving revision 1.32
diff -u -r1.32 hist.m
--- scripts/plot/hist.m 10 Oct 2006 16:10:28 -0000 1.32
+++ scripts/plot/hist.m 25 Apr 2007 19:00:47 -0000
@@ -118,7 +118,7 @@
freq = freq / rows (y) * norm;
endif
- if (nargout > 0)
+ if (nargout > 1)
if (arg_is_vector)
nn = freq';
xx = x';
@@ -127,7 +127,7 @@
xx = x;
endif
else
- bar (x, freq);
+ nn = bar (x, freq, 1.0);
endif
endfunction
- Patch to hist for changes in bar,
David Bateman <=
- Patch to hist for changes in bar, John W. Eaton, 2007/04/25
- Re: Patch to hist for changes in bar, David Bateman, 2007/04/25
- Re: Patch to hist for changes in bar, John W. Eaton, 2007/04/25
- Re: Patch to hist for changes in bar, David Bateman, 2007/04/25
- Re: Patch to hist for changes in bar, John W. Eaton, 2007/04/26
- Re: Patch to hist for changes in bar, David Bateman, 2007/04/26
- Re: Patch to hist for changes in bar, John W. Eaton, 2007/04/26
- Re: Patch to hist for changes in bar, David Bateman, 2007/04/26