Path: news.mathworks.com!newsfeed-00.mathworks.com!oleane.net!oleane!nerim.net!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!not-for-mail
From: dpb <none@non.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Reset the Color Order Property of an axis
Date: Fri, 07 Aug 2009 18:00:09 -0500
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <h5icc7$jq$1@news.eternal-september.org>
References: <h5i6gi$t92$1@fred.mathworks.com> <a49d4c9c-db63-4568-bf94-4e446d9e9824@q14g2000vbi.googlegroups.com> <h5i9jv$ltj$1@fred.mathworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org U2FsdGVkX19GhcePapaBxXaD+LlMQiyUWeGHTXJqZiRPa7bArBH0raijYVOaMTjW6YvWHADar5DTvmgUxGczlANnOeaVDHauEwYXi6wzv43dl9XHYK4yflWT3iqa/R/RPwJZPg6J+Oo=
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Fri, 7 Aug 2009 23:12:08 +0000 (UTC)
In-Reply-To: <h5i9jv$ltj$1@fred.mathworks.com>
X-Auth-Sender: U2FsdGVkX1+LvJb5THH8eemdzJnLPNn6tVueH+7E9J0=
Cancel-Lock: sha1:WPMUe4JIDQakqfLUT7oeFwfzYaA=
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
Xref: news.mathworks.com comp.soft-sys.matlab:561736


Camron Call wrote:
> This doesn't seem to be working for me.
> 
> This loop plots the test data that is selected by the user.  There
> may be any number of plots to be compared on the same axis:
> 
> % code hold all; for j=1:length(testrow) 
> plot(xaxis{j,:}',testdata{testrow(j),:}','LineWidth',lw) end
> 
> %/end code
> 
> testrow is a vector containing the selected rows from a list box.
> 
> Does the hold all;   command make it so that the solution in the
> previous post does not work?  Every time my plot button is pressed,
> the colors start off with the next in line and not with the regular
> blue.

I suspect so --

I'd first try to reset the default order in the loop and see if it 
starts over again; I'm thinking even that may not.

If not, you would probably have to keep up w/ the number of plots and 
rearrange the order to make the position of the first default color that 
position in the color vector.

AFAIK there's no property user-settable that lets you only reset the 
internal index into the order array for color (or linestyle either, for 
that matter).

Seems like another of the "so obvious but..." kinda' missing 
details....I've noticed it before; unlike some others that come up from 
time to time I don't recall this is one I ever formally submitted a 
feature request for.

--