|
From: Sterling S. <sm...@fu...> - 2012-08-28 21:31:15
|
List,
Consider the following script:
import pylab
pylab.plot(pylab.linspace(0,1,100),label='Test',marker='o',ls='')
pylab.plot(pylab.linspace(0,1,100),label='Test2',marker='o',ls='-')
leg=pylab.legend(loc='best')
line=leg.get_lines()
line[0].set_color('black')
line[1].set_color('black')
pylab.draw()
I am attaching the results I see with the TkAgg baackend. I am using version 1.1.0.
I would expect the markers to change colors also. However, I can't seem to find the markers recorded in the legend object to be able to change them. Is this a bug or a feature (resetting the color could lead to inconsistencies between legend and plot)?
Thanks,
Sterling
|