From: Assaf Weinstein on
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
From: dpb on
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

--
From: Walter Roberson on
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.