Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
On Tuesday 19 May 2009 14:07:27 Bala subramanian wrote:
> Someone please suggest me how to make scatter plot with a matrix data such
> as the one attached. Is is possible to feed a matrix to scatter function
> directly and plot the value in each row of the matrix.
the following may help ...
from pylab import *
m = loadtxt("test") # load data
# first solution
for i in xrange(len(m[:, 0])):
# run through the columns and plot matrix data
# over index-array
scatter(arange(len(m[i, :])), m[i, :])
# second solution with same result
# generate a x-array, whose elements should correspond to
# the matrix elements (as above)
x = ones(len(m[:, 0]))[:, newaxis]*arange(len(m[0, :]))
for more options of scatter see for instance the docu at
or the examples at
best regards Matthias
Sign up for the SourceForge newsletter: