Thread Subject: Area plot - color based on value

Subject: Area plot - color based on value

From: Izzy

Date: 19 Nov, 2009 14:27:54

Message: 1 of 1

Hi,

I want to plot an area using the area() function, and i want the
coloring be based on the value:
positive y values should be green and
negative y values should be red

any idea how i do this ?

regards

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