From: <lee...@us...> - 2010-01-11 19:55:35
|
Revision: 8080 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8080&view=rev Author: leejjoon Date: 2010-01-11 19:55:26 +0000 (Mon, 11 Jan 2010) Log Message: ----------- The color of legend patch follows the rc parameters axes.facecolor and axes.edgecolor Modified Paths: -------------- trunk/matplotlib/CHANGELOG trunk/matplotlib/lib/matplotlib/legend.py Modified: trunk/matplotlib/CHANGELOG =================================================================== --- trunk/matplotlib/CHANGELOG 2010-01-11 19:55:19 UTC (rev 8079) +++ trunk/matplotlib/CHANGELOG 2010-01-11 19:55:26 UTC (rev 8080) @@ -1,3 +1,6 @@ +2009-01-11 The color of legend patch follows the rc parameters + axes.facecolor and axes.edgecolor. -JJL + 2009-01-11 adjustable of Axes can be "box-forced" which allow sharing axes. -JJL Modified: trunk/matplotlib/lib/matplotlib/legend.py =================================================================== --- trunk/matplotlib/lib/matplotlib/legend.py 2010-01-11 19:55:19 UTC (rev 8079) +++ trunk/matplotlib/lib/matplotlib/legend.py 2010-01-11 19:55:26 UTC (rev 8080) @@ -284,9 +284,11 @@ # We use FancyBboxPatch to draw a legend frame. The location # and size of the box will be updated during the drawing time. + self.legendPatch = FancyBboxPatch( xy=(0.0, 0.0), width=1., height=1., - facecolor='w', edgecolor='k', + facecolor=rcParams["axes.facecolor"], + edgecolor=rcParams["axes.edgecolor"], mutation_scale=self._fontsize, snap=True ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |