我使用了类似讨论的答案来创建某种形式的工作图表,但问题是没有任何东西真正很好地对齐。
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage[table]{xcolor}
\usepackage{rotating}
\usepackage{pdflscape}
\usepackage{adjustbox}
\usepackage{geometry}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{subfigure}
\usepackage{geometry}
\usepackage{tablefootnote}
\usepackage{changepage}
\usepackage{caption}
\usepackage{pgfplots}
\usepackage{amsmath}
\begin{document}
\begin{figure}[!htb]
\minipage{0.32\textwidth}
\begin{tikzpicture}[scale = 0.6]
\begin{axis}[
domain=-2:2,
]
\addplot+[mark=none,red] {tanh(\x)};
\end{axis}
\end{tikzpicture}
\caption{tanh(x) function}
\begin{equation}
tanh(x) = \frac{e^x - e^{-x}}{e^x + e^{-x}}
\label{eq:tanh}
\end{equation}
\endminipage\hfill
\minipage{0.32\textwidth}
\begin{tikzpicture}[scale = 0.6]
\begin{axis}[
domain=-4:4,
]
\addplot[blue,mark=none] {1/ (1+e^(-x))};
\end{axis}
\end{tikzpicture}
\caption{sigmoid function}
\begin{equation}
\sigma (x) = \frac{\mathrm{1} }{\mathrm{1} + e^{-x} }
\label{eq:sigmoid}
\end{equation}
\endminipage\hfill
\minipage{0.32\textwidth}%
\begin{tikzpicture}[scale = 0.6]
\begin{axis}[
domain=-4:4,
]
\addplot+[mark=none,red,domain=-3:0] {0};
\addplot+[mark=none,red,domain=0:5] {x};
\end{axis}
\end{tikzpicture}
\caption{ReLU function}
\begin{equation}
ReLU(x) =\begin{cases} x & \quad \text{if } x \geq\text{ 0}\\ 0 & \quad \text{if } x \text{ < 0}\end{cases}
\label{eq:relu}
\end{equation}
\endminipage
\end{figure}
\end{document}