[Scilab-users] Polarplot help

Rafael Guerra jrafaelbguerra at hotmail.com
Sun Jan 21 13:08:11 CET 2018


Hi Claus,

Regarding your problem of not being able to plot all curves in one go preserving the scales, if I am not mistaken this can be solved by invoking polarplot with a single call using array notation.
See example here below with 2 curves for simplicity:

// START OF CODE
clf
t = 0:0.01:2*%pi;
t90 = %pi/2 - t;  //redefine angle-convention consistent with loudspeaker plots
theta = t;   // keep Scilab angles for theta
rho1 = 1 + sin(t90).^2;  // use new angle mapping for rho1
rho2 = 1 + 2*cos(t90).^2;  // use new angle mapping for rho2
polarplot([theta,theta], [rho1,rho2]);
a=gca();
set(a,'rotation_angles',[180,0]);  // rotate plot axes
// END OF CODE

Regards,
Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180121/869c9179/attachment.htm>


More information about the users mailing list