help-octave
[Top][All Lists]
Advanced

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

Re: legend and color


From: Ben Abbott
Subject: Re: legend and color
Date: Mon, 04 Feb 2013 08:31:52 -0500

On Feb 4, 2013, at 6:38 AM, CdeMills wrote:

> Hello,
> 
> I'm generating a graph by emitting a few curves with different colors (hold
> is on), then calling 'legend'. But the legends colors do not match the line
> colors. Scaling down the problem:
> 
> octave> plot(1:10, 10:-1:1)
> octave> hl=legend('test'); hc=get(hl, 'children');
> octave> get(hc(2), 'type')
> ans = text
> octave> set(hc(2), 'color', [1 0 0])
> 
> the trouble is that the text 'test'  appearing as the legend does not change
> color on the screen; while its 'color' property was changed. Any idea why
> the color seems to come from the parent (which itself is an "axe" object) ?
> The same code succeeds if the original object is an handle returned by the
> text() function.
> 
> Context: McOS 10.8, octave-devel from MacPorts (3.6.3), gnuplot 4.6
> associated to an "Aqua" terminal.
> 
> Regards
> 
> Pascal

The gnuplot toolkit doesn't attempt to control the color of the text for the 
legend entries.  The toolkit uses gnuplot's key box to produce the legend.  Is 
there a way to change the color of the entries for the key labels in gnuplot?

Ben



reply via email to

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