![tikzpicture を使用して、方程式 (22-x)/2 の線形グラフを LaTeX で描画するにはどうすればよいですか?](https://rvso.com/image/449636/tikzpicture%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%80%81%E6%96%B9%E7%A8%8B%E5%BC%8F%20(22-x)%2F2%20%E3%81%AE%E7%B7%9A%E5%BD%A2%E3%82%B0%E3%83%A9%E3%83%95%E3%82%92%20LaTeX%20%E3%81%A7%E6%8F%8F%E7%94%BB%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%82%88%E3%81%84%E3%81%A7%E3%81%99%E3%81%8B%3F.png)
答え1
TeX.SE へようこそ! 問題を再現する完全な小さなドキュメントである MWE (Minimal Working Example) を必ず提供してください。
\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}