Mercurial > hg > octave-terminal
changeset 7196:9092375e3936
[project @ 2007-11-26 23:39:26 by jwe]
author | jwe |
---|---|
date | Mon, 26 Nov 2007 23:39:26 +0000 |
parents | 97d2da8ed746 |
children | e1c865f21751 |
files | scripts/plot/plotyy.m |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/plotyy.m +++ b/scripts/plot/plotyy.m @@ -44,8 +44,8 @@ ## @group ## x = 0:0.1:2*pi; ## y1 = sin (x); -## y2 = exp(x - 1); -## ax = plotyy(x, y1, x - 1, y2, @@plot, @@semilogy); +## y2 = exp (x - 1); +## ax = plotyy (x, y1, x - 1, y2, @@plot, @@semilogy); ## xlabel ("X"); ## ylabel (ax(1), "Axis 1"); ## ylabel (ax(2), "Axis 2"); @@ -61,7 +61,7 @@ error ("plotyy: expecting first argument to be an axes object"); endif if (nargin < 5) - print_usage(); + print_usage (); endif oldh = gca (); unwind_protect @@ -73,7 +73,7 @@ end_unwind_protect else if (nargin < 4) - print_usage(); + print_usage (); endif newplot (); [ax, h1, h2] = __plotyy__ (gca (), varargin{:}); @@ -84,6 +84,7 @@ H1 = h1; H2 = h2; endif + endfunction function [ax, h1, h2] = __plotyy__ (ax, x1, y1, x2, y2, varargin)