[Scilab-users] Polarplot help

Claus Futtrup cfuttrup at gmail.com
Sun Jan 21 13:37:49 CET 2018


Hi Rafael

Thank you. It works. Interesting how the 'set' command alone can do the
trick:

set(a,'rotation_angles',[180,0]);

Excellent. :-)

Best regards,
Claus

On Sun, Jan 21, 2018 at 12:55 PM, Rafael Guerra <jrafaelbguerra at hotmail.com>
wrote:

> Hi Claus,
>
>
>
> For the angles orientation problem in polar plot and correct labelling,
> here below a simple solution:
>
>
>
> *// 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*
>
> rho = -1 + sin(t90);  *// use new angle mapping for rho*
>
> *polarplot*(theta, rho);
>
> a=*gca*();
>
> set(a,'rotation_angles',[180,0]);  *// rotate plot axes*
>
> *// END OF CODE*
>
>
>
> Regards,
>
> Rafael
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180121/e3be72c0/attachment.htm>


More information about the users mailing list