>>>>> "Flavio" == Flavio Codeco Coelho <fcc...@fi...> writes:
Flavio> matplotlib apparently can't plot numeric arrays with shape
Flavio> (x,1). Check the code below.
Flavio> This is an important drawback because for some matrix
Flavio> operations, such as concatenation it is necessary to
Flavio> specify if the vector is a line or a column, and these
Flavio> vector can't be plotted.
Try adding the following two lines to matplotlib/lines.py on 144 in
the function set_data
self._x.shape = len(self._x),
self._y.shape = len(self._y),
Let me know if that helps.
Flavio> I think this happens for the same reasons matplotlib can't
Flavio> plot matrices as a multiline plot like matlab. IMHO, the
Flavio> plot command should allow for plotting matrices
Flavio> line-by-line like matlab, it is very useful.
Agreed,
JDH
|