Thread Subject: plot in different colors

Subject: plot in different colors

From: stat

Date: 25 Nov, 2009 10:32:04

Message: 1 of 2

Hello all,
I have X and Y 2 vectors and I want to plot(X,Y,'o') but with each 'o' having a different color, is it possible ?
As an information length(X) have non constant value but is never very big (let say 50 at most)
Thanks If you can help

statquant

Subject: plot in different colors

From: Florian

Date: 25 Nov, 2009 12:01:06

Message: 2 of 2

Check this out:

http://blogs.mathworks.com/pick/2008/08/15/colors-for-your-multi-line-plots/

I think this is what you are looking for.

Cheers,
Florian

"stat " <statquant@gmail.com> wrote in message <hej134$hrr$1@fred.mathworks.com>...
> Hello all,
> I have X and Y 2 vectors and I want to plot(X,Y,'o') but with each 'o' having a different color, is it possible ?
> As an information length(X) have non constant value but is never very big (let say 50 at most)
> Thanks If you can help
>
> statquant

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com