Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1692460

Browse files
committed
Fix masked array plotting again.
svn path=/branches/transforms/; revision=3995
1 parent 741b65f commit 1692460

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

lib/matplotlib/lines.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,10 @@ def set_data(self, *args):
378378
else:
379379
x, y = args
380380

381-
x = npy.asarray(x)
382-
y = npy.asarray(y)
381+
if not ma.isMaskedArray(x):
382+
x = npy.asarray(x)
383+
if not ma.isMaskedArray(y):
384+
y = npy.asarray(y)
383385
if ((x.shape != self._xorig.shape or npy.any(x != self._xorig)) or
384386
(y.shape != self._yorig.shape or npy.any(y != self._yorig))):
385387
self._xorig = x
@@ -666,6 +668,11 @@ def _draw_solid(self, renderer, gc, path, trans):
666668
renderer.draw_path(gc, path, trans)
667669

668670

671+
def _draw_steps(self, renderer, gc, path, trans):
672+
# MGDTODO: Implement me
673+
raise NotImplementedError("'steps' linestyle should be returning soon...")
674+
675+
669676
def _draw_dashed(self, renderer, gc, path, trans):
670677
gc.set_linestyle('dashed')
671678
if self._dashSeq is not None:

0 commit comments

Comments
 (0)