Hola Alejandro,
sure, I think this can do the job:
write a function to calc your X values:
def x(data):
X=[]
c=1
for i in data:
if i0:
X.append(c)
c+=1
return X
then your data without zeros in a pythonic way:
my_y_data=[i for i in data if i0]
with
Even in only one line:
plot([i+1 for i in range(len(data)) if data[i]0], [i for i in data if i0])
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of
Hello,
I wrote a message some weeks ago about a problem I have with pylab,
but I think I probably did not explained it very well.
I am witting a small application that use tkFileDialog to prompt user
to select a file.
Then reads it and plot the data.
I want that the user could be able to press a
Hello,
I started using pylab-matplotlib some weeks ago. And it is really good.
I'm working now on windows (TkAgg).
I have written a small app that reads a file and plot it. User can
press a key to read another file, and plot it over. The problem is
that the I have to resize the plot window to