[Scilab-users] more polarplots in one coordinate system

tim at wescottdesign.com tim at wescottdesign.com
Mon Nov 28 19:06:15 CET 2016


On 2016-11-28 02:12, Maxi041291 wrote:
> Hello together,
> 
> i would like two plot a few polarplots in one coordinate-system. The 
> number
> of the plots should be defined by the length of a vector.
> In Matlab i would use the hold on command in a for Loop for it.
> 
> I know, that i dont Need the hold on command in the plot(), but if i 
> define
> two polarplots, i get two different coordinate Systems.
> For e.g.
> polarplot(Phase,magnitude)
> polarplot(Phase1, magnitude1)
> 
> I have to define those in one polarplot to get one coordinate System 
> for
> both:
> polarplot([Phase phase1],[Magnitude,magnitude1]).
> 
> Now my question is:
> 
> how can i automatically define more polarplots (depending on the length 
> of
> my vectors) in one coordinate System?
> 
> thank you, Maxi

Hey Maxi:

This is very strange, because when I execute

th = (0:0.01:1) * 2 * %pi;
clf;
polarplot(th, sin(2 * th));
polarplot(th(1:5:$), cos(2 * th(1:5:$)));

I get two polar plots, nicely superimposed one atop the other.  (Scilab, 
by default, always superimposes graphs -- you have to explicitly use the 
'clf' function if you want to start out fresh -- it's sort of the 
"anti-hold".  Fortunately, you can always do it -- in Scilab, calling 
'clf' when there are no graphics entities creates one.)




More information about the users mailing list