import matplotlib.pyplot as plt

myListX=[]
myListY=[]
f = open('isothermal1.dat', 'r', encoding='UTF-8')

while True:
  data = f.readline()
  if data == '':
    break
  #print (data.rstrip('\n'))
  temp = data.rstrip('\n')
  #print(temp)
  temp2 = temp.split()
  
  myListX.append(float(temp2[0]))
  myListY.append(float(temp2[1]))

f.close()
print(myListX)
print(myListY)
plt.plot(myListX, myListY)
plt.show()


