이미지의 윗부분을 제거하세요.

이미지의 윗부분을 제거하세요.

저는 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}

관련 정보