0
Ich versuche, eine .txt-Datei von Zeilen der Form zu zeichnen:Listenindex außerhalb des Bereichs für mein Grundstück?
filename.txt date magnitude
V098550.txt 362.0 3.34717962317
ich das Datum gegen die Größe des Grundstückes versuche.
import numpy as np
import matplotlib.pyplot as plt
#names = '/home/sindelj/research/condensed.txt'
x, y, z= np.loadtxt ("condensed.txt", usecols=(1, 2), unpack=True)
for ii in range (len(names)):
x.replace('.txt', '.lc\n')
jd, npmag = ("np.loadtxt /net/jovan/export/jovan/oelkerrj/Vela/rotation/Vela/list.txt", +x[ii])
plt.scatter (jd, npmag)
plt.jdlabel ('Time')
plt.npmaglabel ('Mag')
plt.npmaglim ([15.,14.])
plt.show() # after test comment this out
fileName = names[ii][:-3] + ".png"
plt.savefig(fileName)
print "done"