[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Holding axis properties between plots
From: |
Michael Goffioul |
Subject: |
Re: Holding axis properties between plots |
Date: |
Wed, 30 Apr 2008 15:44:05 +0200 |
On Wed, Apr 30, 2008 at 3:32 PM, Vodden John <address@hidden> wrote:
> >
> > Is there a quick way to restore the previous axis state to a new
> > graph, or to disable resetting the axis properties when plot is
> called?
> >
> >I think that you may be looking for the hold command. Specifically,
> >you probably want to use "hold on".
>
> Thanks for the help, but hold holds "the current data on the plot when
> executing subsequent plotting commands." It is not the data that I want
> to hold but instead general state of the graph, normally axis limits but
> possibly labels and tic settings too.
% on first plot
h = plot(.....)
% do some axis configuration
set(gca, ...)
% change plot data
set(h, 'xdata', ..., 'ydata', ...)
Michael.