# HG changeset patch # User Ben Abbott # Date 1292711579 18000 # Node ID 98d523608f70f583bf478050e3a3fe2027f02554 # Parent 7ca273af4309616306c9d6fbecec436339e160b2 view.m: Return azimuth and elevation for nargin == 0. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-12-18 Ben Abbott + + * plot/view.m: Return azimuth and elevation for nargin == 0. + 2010-10-28 Rik * deprecated/module.mk, sparse/module.mk, deprecated/sphcat.m, diff --git a/scripts/plot/view.m b/scripts/plot/view.m --- a/scripts/plot/view.m +++ b/scripts/plot/view.m @@ -42,9 +42,7 @@ if (nargin < 4) if (nargin == 0) - tmp = get (gca (), "view"); - az = tmp(1); - el = tmp(2); + args = {get(gca (), "view")}; else ax = varargin{1}; if (ishandle (ax) && strcmp (get (ax, "type"), "axes"))