# HG changeset patch # User Nicholas R. Jankowski # Date 1714060505 14400 # Node ID 583637c89c117eec2e108735b1c70044e3a2ce41 # Parent d9edf5bc95c716669ac79cc3dc0b6cb7bffd18f2# Parent 2f5a875246aecf2bb77fa93160b775f30624cfe4 maint: Merge default to bytecode-interpreter. diff -r d9edf5bc95c7 -r 583637c89c11 etc/NEWS.10.md --- a/etc/NEWS.10.md Thu Apr 25 11:43:18 2024 -0400 +++ b/etc/NEWS.10.md Thu Apr 25 11:55:05 2024 -0400 @@ -38,6 +38,8 @@ to 'rtick' by the function `rticks` will only include the center tick mark value if it is specified. +- `view` correctly interprets cartesion viewpoints on main axes. (bug #65641) + ### Matlab compatibility - `height` and `width` are now aliases for the `rows` and `columns` functions. diff -r d9edf5bc95c7 -r 583637c89c11 scripts/plot/appearance/view.m --- a/scripts/plot/appearance/view.m Thu Apr 25 11:43:18 2024 -0400 +++ b/scripts/plot/appearance/view.m Thu Apr 25 11:55:05 2024 -0400 @@ -58,6 +58,10 @@ print_usage (); endif + if (nargout > 0 && nargin > 0) + error ("view: cannot simultaneously get and set viewpoint"); + endif + if (isempty (hax)) hax = gca (); endif @@ -66,8 +70,6 @@ vw = get (hax, "view"); az = vw(1); el = vw(2); - elseif (nargout > 0) - error ("view: cannot simultaneously get and set viewpoint"); elseif (numel (varargin) == 1) x = varargin{1}; if (numel (x) == 2)