>>>>> "Flavio" == Flavio Codeco Coelho <fcc...@fi...> writes:
Flavio> Matplotlib 0.54.1 still has trouble plotting column or row
Flavio> vectors:
Try replacing matplotlib.lines.set_data with the following and let me
know if it passes all your tests. You will need to add ravel to the
list of functions imported from numerix at the top of the lines
module.
def set_data(self, x, y):
try: del self._xc, self._yc
except AttributeError: pass
self._x = asarray(x, Float)
self._y = asarray(y, Float)
if len(self._x.shape)>1: self._x = ravel(self._x)
if len(self._y.shape)>1: self._y = ravel(self._y)
if len(self._y)==1 and len(self._x)>1:
self._y = self._y*ones(self._x.shape, Float)
if self._useDataClipping: self._xsorted = self._is_sorted(self._x)
Thanks!
JDH
|