Bug 13404 fixed: Rect property was not taken into account in polarplot
[scilab.git] / scilab / modules / graphics / macros / polarplot.sci
index 74330c1..89390c1 100644 (file)
@@ -161,9 +161,6 @@ function polarplot(theta,rho,style,strf,leg,rect)
     end
     drawlater()
     execstr("plot2d(x,y,"+strcat(opts,",")+")")
-    a=gca();
-    a.data_bounds=[rect(1:2);rect(3:4)]
-    a.margins=[0.07 0.07 0.12 0.07]
 
     fcolor=color("grey70");
     xset("dashes",1)
@@ -228,5 +225,10 @@ function polarplot(theta,rho,style,strf,leg,rect)
         e = gce();
         e.clip_state = "off";
     end
+
+    a=gca();
+    a.data_bounds=[rect(1:2);rect(3:4)]
+    a.margins=[0.07 0.07 0.12 0.07]
+
     drawnow()
 endfunction