
Ich bin neu bei Tikz und wollte den rot umrahmten Teil im Bild unten nicht. Ich verwende den folgenden Code. Wie ändere ich meinen Code?
\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}
Antwort1
Sie haben axis y line*=left
die y-Achse verwendetnurauf der linken Seite und das Anwenden einer ähnlichen Option axis x line*=bottom,
scheint zu funktionieren:
Code:
\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}