
import numpy
from matplotlib.pyplot import *

M = numpy.loadtxt("eau.txt",unpack=True)
P = M[0]
T = M[1]
vliq = M[2]
vgaz = M[3]
hliq = M[4]
hgaz = M[5]
sliq = M[6]
sgaz = M[7]
			

figure(figsize=(8,6))
plot(T,P)
xscale('log')
yscale('log')
xlabel('T (C)')
ylabel('P (bar)')
title("H2O")
grid()
            

figure(figsize=(8,6))
plot(vliq,P,'b')
plot(vgaz,P,'b')
xscale('log')
yscale('log')
xlabel('v (m^3/kg)')
ylabel('P (bar)')
title("H2O")
grid()
            

figure(figsize=(8,6))
plot(hliq,P,'b')
plot(hgaz,P,'b')
yscale('log')
xlabel('h (kJ/kg)')
ylabel('P (bar)')
title("H2O")
axis([0,3500,1e-2,1e3])
grid()
            

figure(figsize=(8,6))
plot(sliq,T,'b')
plot(sgaz,T,'b')

xlabel('s (kJ/K/kg)')
ylabel('T (C)')
title("H2O")
grid()
            
