From: <md...@us...> - 2008-02-25 20:21:44
|
Revision: 4987 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4987&view=rev Author: mdboom Date: 2008-02-25 12:21:39 -0800 (Mon, 25 Feb 2008) Log Message: ----------- [ 1901410 ] Newbie bug report: clip_on set to False actually True Modified Paths: -------------- branches/v0_91_maint/lib/matplotlib/axes.py Modified: branches/v0_91_maint/lib/matplotlib/axes.py =================================================================== --- branches/v0_91_maint/lib/matplotlib/axes.py 2008-02-21 19:13:46 UTC (rev 4986) +++ branches/v0_91_maint/lib/matplotlib/axes.py 2008-02-25 20:21:39 UTC (rev 4987) @@ -2236,7 +2236,7 @@ #if t.get_clip_on(): t.set_clip_box(self.bbox) - if kwargs.has_key('clip_on'): t.set_clip_box(self.bbox) + if kwargs.get('clip_on'): t.set_clip_box(self.bbox) return t text.__doc__ = cbook.dedent(text.__doc__) % martist.kwdocd @@ -4046,22 +4046,22 @@ 'p' : pentagram 'h' : hexagon '8' : octagon - + The marker can also be a tuple (numsides, style, angle), which will create a custom, regular symbol. - + numsides is the number of sides - + style is the style of the regular symbol: 0 : a regular polygon 1 : a star-like symbol 2 : an asterisk - + angle is the angle of rotation of the symbol - + Finally, marker can be (verts, 0), verts is a sequence of (x,y) vertices for a custom scatter symbol. - + s is a size argument in points squared. Any or all of x, y, s, and c may be masked arrays, in which This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |