画像の上部を削除する

画像の上部を削除する

私は 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}

関連情報