[Scilab-users] Fwd: avoid auto-zoom when rotating a 3D graphic
Samuel Gougeon
sgougeon at free.fr
Sat Jul 10 16:37:06 CEST 2021
Hello,
Le 07/07/2021 à 10:09, Stéphane Mottelet a écrit :
>
> Hello Philipp,
>
> The feature did exist until Scilab 5 family but was removed.
>
I have never seen this in Scilab 4, 5 or 6. 3D rotations have always
been prone to some stretching of the axes in order to fill the more as
possible the axes_bounds whatever are the rotation_angles, isoview and
cube_scaling values.
Could you provide a sample running on Scilab 5 and preventing this
stretching?
Thanks.
Samuel
x = [0:0.3:%pi]';
y = [0:0.3:2*%pi];
z = sin(x)*cos(y);
[xx,yy,zz] = genfac3d(x,y,z);
plot3d(xx,yy,zz)
for iv = ["off" "on"]
ax.isoview = iv;
for cs = ["off" "on"]
ax.cube_scaling = cs;
for a = 0:3:720, ax.rotation_angles(2) = a; sleep(100); end
end
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20210710/943ce5f6/attachment.htm>
More information about the users
mailing list