view.m: Return azimuth and elevation for nargin == 0.
author |
Ben Abbott <bpabbott@mac.com> |
date |
Sat, 18 Dec 2010 17:32:59 -0500 |
parents |
7ca273af4309 |
children |
757efa1d7e2a |
files |
scripts/ChangeLog scripts/plot/view.m |
diffstat |
2 files changed, 5 insertions(+), 3 deletions(-)
[+]
|
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2010-12-18 Ben Abbott <bpabbott@mac.com>
+
+ * plot/view.m: Return azimuth and elevation for nargin == 0.
+
2010-10-28 Rik <octave@nomad.inbox5.com>
* deprecated/module.mk, sparse/module.mk, deprecated/sphcat.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"))