"Steven_Lord" <firstname.lastname@example.org> wrote in message <email@example.com>... > > > "Nasser M. Abbasi" <firstname.lastname@example.org> wrote in message > news:email@example.com... > > On 11/9/2012 4:29 AM, Nasser M. Abbasi wrote: > >> On 11/9/2012 4:16 AM, Debora wrote: > > *snip* > >> *snip* When I have to plot spectra, for example, that show an increase in response over time, I use a small program that I wrote to generate an array of colors that go from *cool* blue to *warm* red.
function Colors = plot_colors(no_plots) % Generates an n X 3 array of rgb values for multiple plots. % The colors trend from *coolor* blue to *warmer* red. % This is useful for showing an increase in response over time. % Can be used in a loop. Example: % for n=1:no_plots % plot(x(n), y(n), 'Color', Colors(n,:)) % end % Colors = zeros(no_plots,3); Colors(:,1) = linspace(0,1,no_plots); Colors(:,3) = linspace(1,0,no_plots); half = round(no_plots/2); Colors(1:half,2)=linspace(0,1,half); Colors(half+1:no_plots,2)=linspace(1,0,no_plots-half);
I have found it useful for easily visualizing trends in the data where there are a maximum of about 20 plots. Barry