
私は tikz の初心者です。下の画像の赤枠部分は不要だったので、次のコードを使用しています。コードを変更するにはどうすればよいでしょうか?
\documentclass{standalone}
\usepackage{mathtools}
\usepackage{pgfplots}
\usepackage{siunitx}
\sisetup{per-mode=symbol}
\DeclareSIUnit{\fahrenheit}{\degree F}
\DeclareSIUnit{\pound}{lbm}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xmin=700,xmax=2000,
ymin=0,ymax=50,
axis y line*=left,
xlabel={$p_0$ (psi)},
xlabel near ticks,
ylabel near ticks
]
\end{axis}
\end{tikzpicture}
\end{document}
答え1
axis y line*=left
これまではy軸がありましたのみ左側の同様のオプションを適用すると、axis x line*=bottom,
機能するようです。
コード:
\documentclass{standalone}
\usepackage{mathtools}
\usepackage{pgfplots}
\usepackage{siunitx}
\sisetup{per-mode=symbol}
\DeclareSIUnit{\fahrenheit}{\degree F}
\DeclareSIUnit{\pound}{lbm}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xmin=700,xmax=2000,
ymin=0,ymax=50,
axis y line*=left,
axis x line*=bottom,
xlabel={$p_0$ (psi)},
xlabel near ticks,
ylabel near ticks
]
\end{axis}
\end{tikzpicture}
\end{document}