[Scilab-users] Polarplot help

Claus Futtrup cfuttrup at gmail.com
Sun Jan 21 13:54:25 CET 2018


Hi Rafael, et al.

I now see that - actually - example 2 of the documentation indeed does plot
two graphs. There's no explanation to the example ... sometimes the
documentation for Scilab functions is incredibly hard to read for someone
who doesn't already know in advance.

/Claus

On Sun, Jan 21, 2018 at 1:41 PM, Claus Futtrup <cfuttrup at gmail.com> wrote:

> Hi Rafael
>
> Array notation. After Reading your suggestion I looked at the
> documentation of polarplot and this is not explicitly treated, so I missed
> that one. Thank you.
>
> Best regards,
> Claus
>
> On Sun, Jan 21, 2018 at 1:08 PM, Rafael Guerra <jrafaelbguerra at hotmail.com
> > wrote:
>
>> 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
>>
>> _______________________________________________
>> 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/8b3a9b4b/attachment.htm>


More information about the users mailing list