#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 23 23:18:12 2022

@author: macbookraphael
"""
import numpy as np
import matplotlib.pyplot as plt


#m = 
#c = 

fig=plt.figure(figsize=(12,6))
ax = fig.add_axes([0.2, 0.2, 0.35, 0.7])
plt.grid()

ax.set_xlim(0,2)
ax.set_ylim(-1,5)

x = np.linspace(0,10,1000)
Sc = ( np.log(x)-1+(1/x))
ax.set_title(label = 'Entropie créée en fonction du rapport des températures')
ax.set_xlabel('Rapport Tf/Ti')
ax.set_ylabel('entropie créée (J/mol/K)')
plt.legend()
ax.plot(x,Sc)
plt.show()