Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
shade some zones for emphasis

Subject: shade some zones for emphasis

From: Kuo-Hsien

Date: 27 Apr, 2010 01:54:05

Message: 1 of 3

Hi all,

I have a plot need some shade zones for emphasis. I can find some useful code to emphasize the time series, however I can't find one for emphasis the Y axis. For example, I like to emphasis [Y1 Y2], [Y5 Y6] and so on. Here, Y1 = 5, Y2 = 10, Y5 = 30 and Y6 = 40.

Thank you.

Subject: shade some zones for emphasis

From: Ashish Uthama

Date: 27 Apr, 2010 12:34:17

Message: 2 of 3

On Mon, 26 Apr 2010 22:54:05 -0300, Kuo-Hsien <mchangks@hotmail.com> wrote:

> Hi all,
>
> I have a plot need some shade zones for emphasis. I can find some useful
> code to emphasize the time series, however I can't find one for emphasis
> the Y axis. For example, I like to emphasis [Y1 Y2], [Y5 Y6] and so on.
> Here, Y1 = 5, Y2 = 10, Y5 = 30 and Y6 = 40.
>
> Thank you.

Can you post code with dummy data for the plot you have? It might help
CSSMers better understand what you mean by 'ephasis'.

Something like this?
>> plot(1:10,1:10)
>> hold on
>> plot(1:2:10,1:2:10,'r*')

Subject: shade some zones for emphasis

From: Kuo-Hsien

Date: 27 Apr, 2010 13:52:05

Message: 3 of 3

> Can you post code with dummy data for the plot you have? It might help
> CSSMers better understand what you mean by 'ephasis'.
>
> Something like this?
> >> plot(1:10,1:10)
> >> hold on
> >> plot(1:2:10,1:2:10,'r*')


Here is the link: http://blogs.mathworks.com/pick/2007/07/27/shading-plots-for-emphasis/

This code only shades along x axis. How to shade along y axis?

Thank you.

Tags for this Thread

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.

Contact us