有没有办法在四边都添加轴标签?

有没有办法在四边都添加轴标签?
\documentclass[tikz, border=1cm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{filecontents*}{data.csv}
group, x,  y 
1.10,  0.1, 0
1.10,  2,  2.2
1.10,  3,  2.1
1.10,  4,  1.5
\end{filecontents*}
\begin{document}
\begin{tikzpicture}
\begin{axis}[ymode=log, ymin=1, ymax=10]
\addplot table[x=x, y=y, col sep=comma] {data.csv};
\end{axis}
\end{tikzpicture}
\end{document}

在此处输入图片描述

答案1

\documentclass[tikz, border=1cm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{filecontents*}{data.csv}
group, x,  y 
1.10,  0.1, 0
1.10,  2,  2.2
1.10,  3,  2.1
1.10,  4,  1.5
\end{filecontents*}
\begin{document}
\begin{tikzpicture}
\pgfplotsset{xmin=0, xmax=5, ymin=1, ymax=10}
\begin{axis}[ymode=log, tick pos=right, axis line style={draw=none}] \end{axis} %tick duplicates
\begin{axis}[ymode=log, tick pos=left]
\addplot table[x=x, y=y, col sep=comma] {data.csv};
\end{axis}
\end{tikzpicture}
\end{document}

四边带有刻度标签的图表

相关内容