#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 14 22:39:01 2022
local_sensitivity.py
figure 4.22

@author: bingalls
"""
import numpy as np
import matplotlib.pyplot as plt


#curve:
V=np.linspace(2.2,10,300); #generate V-grid
s=3/(V-2)

#tangent line:
V2=np.linspace(2.7,5.3)
s2=1.5-(V2-4)*(0.75)


plt.figure()
plt.plot(V,s, linewidth=2)
plt.plot(V2,s2, linewidth=2)
plt.xlabel("$V_{max}$ (mM/min)")
plt.ylabel("s (mM)")

plt.xlim(2,8)
plt.ylim(0,4)