|
From: <md...@us...> - 2009-02-02 17:12:30
|
Revision: 6866
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6866&view=rev
Author: mdboom
Date: 2009-02-02 17:12:27 +0000 (Mon, 02 Feb 2009)
Log Message:
-----------
Fix markevery -- the tuple form was not working (if it ever was).
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/lines.py
Modified: trunk/matplotlib/lib/matplotlib/lines.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/lines.py 2009-02-02 16:29:37 UTC (rev 6865)
+++ trunk/matplotlib/lib/matplotlib/lines.py 2009-02-02 17:12:27 UTC (rev 6866)
@@ -508,12 +508,12 @@
startind, stride = markevery
else:
startind, stride = 0, markevery
- if tpath.codes is not None:
- codes = tpath.codes[startind::stride]
- else:
- codes = None
- vertices = tpath.vertices[startind::stride]
- subsampled = Path(vertices, codes)
+ if tpath.codes is not None:
+ codes = tpath.codes[startind::stride]
+ else:
+ codes = None
+ vertices = tpath.vertices[startind::stride]
+ subsampled = Path(vertices, codes)
else:
subsampled = tpath
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|