changeset 18752:a50d0d85dc73

Set axis equal for 2D parametric plots done with ezplot. * __ezplot__.m: Use 'axis equal' for 2D parametric plots.
author Rik <rik@octave.org>
date Fri, 02 May 2014 09:40:07 -0700
parents 89055521e04d
children b1f092e1a887
files scripts/plot/draw/private/__ezplot__.m
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/private/__ezplot__.m	Fri May 02 14:57:09 2014 +0100
+++ b/scripts/plot/draw/private/__ezplot__.m	Fri May 02 09:40:07 2014 -0700
@@ -448,8 +448,12 @@
       axis (hax, domain);
     elseif (isplot || ispolar)
       h = feval (pltfunc, hax, X, Z);
-      if (isplot && ! parametric)
-        axis (hax, domain);
+      if (isplot)
+        if (! parametric)
+          axis (hax, domain);
+        else
+          axis ("equal");
+        endif
       endif
     elseif (isplot3)
       if (animate)