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.