Till Wagner <[EMAIL PROTECTED]> writes:
> leg.draw_frame(False) might be an option, but I use
> self.axes.grid(True) and when the legend has no
> borders, the grid is shown through the text and makes
> ist nearly unredable.
I use something like this ("setp(legendframe, linewidth=0.0)" is the
crucial command):
# http://matplotlib.sourceforge.net/matplotlib.pylab.html#-legend
legend(loc='upper left', shadow=False)
legend = gca().get_legend()
legendtext = legend.get_texts()
legendlines = legend.get_lines()
legendframe = legend.get_frame()
setp(legendtext, fontsize='small')
setp(legendlines, linewidth=1.5)
#legend.draw_frame(False) # don't draw the legend frame
setp(legendframe, linewidth=0.0)
legendframe.set_facecolor(0.98) # set the frame face color to light gray
HTH,
Colin
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users