From: John Hunter <jdhunter@ac...>  20040531 15:41:22

>>>>> "Flavio" == Flavio Codeco Coelho <fccoelho@...> writes: Flavio> Thanks John, with your patch, it is now possible to plot Flavio> vectors with shape(n,1)(column vector). However, vectors Flavio> of shape (1,n)(row vector) give the following error: OK, thanks for the info. I think I've got a working solution now, at least as far as plot and friends (semilogx, semilogy, and loglog, all of which use plot plus a scale change) are concerned. There may still be problems in the other plot commands (scatter, hist, bar, etc since I haven't tested these yet). I've added the following to my unit test code from matplotlib.matlab import * y1 = arange(10) y1.shape = 1,10 y2 = arange(10) y2.shape = 10,1 subplot(411) plot(y1) subplot(412) plot(y2) subplot(413) plot(y1, y2) subplot(414) X = rand(10,10) plot(X[:,1], X[1,:], 'o') savefig('shapes') I'll try and write some test code for the other plot commands as time permits. In the meantime, if you know of any other failures, let me know. JDH 