Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: Multiple polar plots on same figure - different colors for each

$
0
0
 >
> > Questions:
> > a. Is there a way to specify a separate color for each iteration of the loop?
> > b. Is there a way to display a legend showing all the colors in the figure?
> >
>
> someone was asking similar question yesterday, here is the thread
>
> "Thread Subject: I have n graphs and I want different color"
>
> http://www.mathworks.com/matlabcentral/newsreader/view_thread/324383
>
> few suggestions there. See the thread, and if still have question
> you can ask
>

I liked your response in that thread:
x=-pi:pi/10:pi;
for i=1:10
   plot(x,foo(i),'Color',[1,1/i,0.6])
end

However, in a polar plot, I cannot specify 'Color'. ex. the following command will not work:
   polar(x,foo(i),'Color',[1,1/i,0.6])

This is the problem that I am having.

Am I missing something?

Viewing all articles
Browse latest Browse all 19628

Latest Images

Trending Articles



Latest Images