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 <cfutt...@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 <jrafaelbgue...@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@lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
>>
>>
>
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to