How can I find the maximum points of the curves generated by the contour plot, and then connect them?
import matplotlib.pyplot as plt
import numpy as np
t = np.arange(263, 383, 0.001)
r=np.arange(0.1,0.9,0.1)
T, R = np.meshgrid(t, r)
k1=np.exp(17.34-(48900./(8.314*T)))
k2=np.exp(42.02-(124200./(8.314*T)))
XA=(k1-R)/(k1+k2)
plt.contour(T,XA,R)
plt.axis([263,383,0,1])
plt.show()

