[Scilab-users] more polarplots in one coordinate system

Samuel Gougeon sgougeon at free.fr
Mon Nov 28 17:13:17 CET 2016


Le 28/11/2016 16:01, Maxi041291 a écrit :
> Thank you for trying to help, but i think i didnt describe my Problem well
> enough.
> Normally there should be arrows in the plot,
You did not require this previously.
> but i dont think this is
> possible in scilab.
https://help.scilab.org/docs/6.0.0/en_US/polyline_properties.html

> But here a Piece of my original code in scilab:
>
> clear;
> clc;
> phase=[0;-2.8487;-2.993; 2.9664;2.8264;2.9638];
> magnitude=[0;1.25e-4;2.17e-4;1.34e-4;7.5e-5;1.32e-4];
> allmagnitude=[0; 1.32e-4];
> allphase=[0;2.9638];
> //This is how it works, but just for a defined length of the vectors
> clf(1);
> polarplot([phase(1:2) phase(2:3) phase(3:4) phase(4:5) phase(5:6)
> allphase],[magnitude(1:2) magnitude(2:3) magnitude(3:4) magnitude(4:5)
> magnitude(5:6) allmagnitude],[5,2,3,1,4,9]);

Sorry, i don't understand what you wish: Do you really wish to have each 
segment one by one with a different color?

>
> //This is the way it doesnt work
> clf(2);
> polarplot(phase,magnitude,[5,2]);
> polarplot(allphase,allmagnitude,[1,2]);

Anyway, you must call polarplot() only once. Or to convert 
(angles,radii) => (x, y) yourself before using plot() instead of polarplot()

>
>
>
>
> Because the length of the vectors (Magnitude and Phase) is not fixed in my
> original code,
What do you mean by "is not fixed"?
> i think i cant define the polarplot like its done in the
> first example.
> So i would like to do it like in the second example, but that doesn´t work,
> because i get a new axis for each datapoint

With polarplot, presently you can't avoid it. Each call yields a polar 
frame.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20161128/846ed1c7/attachment.htm>


More information about the users mailing list