help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customizing legends


From: JaWiB
Subject: Re: Customizing legends
Date: Thu, 13 Dec 2012 21:16:56 -0800 (PST)

Thanks guys. I went with something like Torsten's solution:
octave:62> plotColors = colormap;
octave:63> plot(temps(:,1),caps(:,1),";Capacitance;")
octave:64> hold on
octave:65> plot(temps(:,1),cons(:,1),"--;Conductance;")
octave:66> for i=2:size(temps,2)
> plotColorsI = round( size(plotColors,1)*i/size(temps,2));
> h1 = plot(temps(:,i),caps(:,i));
> h2 = plot(temps(:,i),cons(:,i),"--");
> set(h1,'Color',plotColors(plotColorsI,:));
> set(h2,'Color',plotColors(plotColorsI,:));
> endfor

A bit more effort than I'd hoped, but still not bad. If I really care to
change the legend to black, I guess I could plot an additional data series
that won't show up (maybe a single data point or just manually set the axes
so it's off the screen?)



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Customizing-legends-tp4647846p4647904.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]