[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
legend and color
From: |
CdeMills |
Subject: |
legend and color |
Date: |
Mon, 4 Feb 2013 03:38:07 -0800 (PST) |
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
--
View this message in context:
http://octave.1599824.n4.nabble.com/legend-and-color-tp4649466.html
Sent from the Octave - General mailing list archive at Nabble.com.
- legend and color,
CdeMills <=
Re: legend and color, Ben Abbott, 2013/02/04