Thread Subject: Add a line w/o changing xlim or ylim

Subject: Add a line w/o changing xlim or ylim

From: Assaf Weinstein

Date: 7 Mar, 2010 19:01:05

Message: 1 of 3

Hi,

I created a figure, and would simply like to add the x axis (a horizontal line at y=0) WITHOUT changing the xlim and ylim of the whole figure (ie, I don't want that the dimensions be modified to the x range of my new line). Is there a way to do this?..

Thanks!

Assaf

Subject: Add a line w/o changing xlim or ylim

From: dpb

Date: 7 Mar, 2010 19:18:21

Message: 2 of 3

Assaf Weinstein wrote:
> Hi,
>
> I created a figure, and would simply like to add the x axis (a
> horizontal line at y=0) WITHOUT changing the xlim and ylim of the whole
> figure (ie, I don't want that the dimensions be modified to the x range
> of my new line). Is there a way to do this?..

doc hold

--

Subject: Add a line w/o changing xlim or ylim

From: Walter Roberson

Date: 7 Mar, 2010 19:21:49

Message: 3 of 3

Assaf Weinstein wrote:

> I created a figure, and would simply like to add the x axis (a
> horizontal line at y=0) WITHOUT changing the xlim and ylim of the whole
> figure (ie, I don't want that the dimensions be modified to the x range
> of my new line). Is there a way to do this?..


Use

hold on


Technical note: figures do not have xlim and ylim: axes have xlim and ylim.

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