Revision: 3995 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3995&view=rev Author: mdboom Date: 2007-10-24 11:12:19 -0700 (Wed, 24 Oct 2007)
Log Message: ----------- Fix masked array plotting again. Modified Paths: -------------- branches/transforms/lib/matplotlib/lines.py Modified: branches/transforms/lib/matplotlib/lines.py =================================================================== --- branches/transforms/lib/matplotlib/lines.py 2007-10-24 18:01:26 UTC (rev 3994) +++ branches/transforms/lib/matplotlib/lines.py 2007-10-24 18:12:19 UTC (rev 3995) @@ -378,8 +378,10 @@ else: x, y = args - x = npy.asarray(x) - y = npy.asarray(y) + if not ma.isMaskedArray(x): + x = npy.asarray(x) + if not ma.isMaskedArray(y): + y = npy.asarray(y) if ((x.shape != self._xorig.shape or npy.any(x != self._xorig)) or (y.shape != self._yorig.shape or npy.any(y != self._yorig))): self._xorig = x @@ -666,6 +668,11 @@ renderer.draw_path(gc, path, trans) + def _draw_steps(self, renderer, gc, path, trans): + # MGDTODO: Implement me + raise NotImplementedError("'steps' linestyle should be returning soon...") + + def _draw_dashed(self, renderer, gc, path, trans): gc.set_linestyle('dashed') if self._dashSeq is not None: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins