I want to draw a simplified Michaelis-Menten kinetic (monod-function) to compare it with a linear function.
Minimum Working Example (MWE):
\documentclass{standalone}
\usepackage{pgfplots}
\usepackage{amsmath}
\pgfplotsset{compat=1.14, /pgf/declare function={f1(\x)=ln(x);}}% <- This is the exponential function which needs to be optimized
\begin{document}
\begin{tikzpicture}
\begin{axis}[
ymin = 0,
xmin = 0,
xmax = 1,
ymax = 0.9,
axis x line = bottom,
axis y line = left,
]
% \addplot[no marks, samples=100, draw=blue] {f1(x)};% This is the exponential graph based on the function
\addplot[no marks, samples=100, draw=black, thick] coordinates{(0,0) (0.2020725942,0.35)};%
\addplot[no marks, samples=100, draw=black, thick] (0.2020725942,0.35) to [out=60,in=180] (0.8,0.7) to [out=0,in=0] (1,0.7);%
\draw[draw=black, dashed] (0,0.7) -- node[above] {\(y_{\text{tot}}\)} ++(0.8,0.0);%
\draw[draw=black, dashed] (0,0.35) -- node[above] {\(\frac{y_{\text{tot}}}{2}\)} ++(0.2020725942,0) -- (0.2020725942,-0.35);%
\end{axis}
\end{tikzpicture}
\end{document}
Screenshot of the result:
Description of the issue:
How can I replace the current graph with an exponential graph?
Start point of the exponential graph:
- Start point: x = 0.2020725942, y = 0.35, angle = 60°,
- End point: y = ~ 0.7 (of course, wherever the e-function would end)
As soon as I activate the graph with the exponential function, my whole diagram will be distorted. How to implement an exponential graph based on the upper values correctly?
a
andb
inf(x) = a*exp(x)+b
such thatf(0.2020725942)=0.35
andf'(0.2020725942)=tan(pi/3)
? If this is the case here is not the right place to ask this question.