![如何使用 tikzpicture 在 LaTeX 中繪製方程式 (22-x)/2 的線性圖?](https://rvso.com/image/449636/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20tikzpicture%20%E5%9C%A8%20LaTeX%20%E4%B8%AD%E7%B9%AA%E8%A3%BD%E6%96%B9%E7%A8%8B%E5%BC%8F%20(22-x)%2F2%20%E7%9A%84%E7%B7%9A%E6%80%A7%E5%9C%96%EF%BC%9F.png)
答案1
歡迎來到 TeX.SE!請始終提供 MWE(最小工作範例),這是一個完整的小文檔,可以重現您的問題。
\documentclass[margin=3mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis lines = middle,
xlabel={$\omega_{m}$},
ylabel={T},
label style = {below left},
xmin=0, xmax=28, xtick={22},
ymin=0, ymax=13, ytick={11}]
\addplot[red, ultra thick, domain=0:22] {(22-x)/2};
\end{axis}
\end{tikzpicture}
\end{document}