
내 플롯 중 하나의 약 1/10이 어떻게 설정되었는지 xmin
에 관계없이 양쪽에서 잘립니다 . xmax
이를 어떻게 방지할 수 있나요?
\documentclass{standalone}
\usepackage{tikz,pgfplots}
\begin{document}
\begin{tikzpicture} \pgfplotsset{scale only axis}
\begin{axis}[ymin=0,xmin=0,xmax=1,
axis y line*=left,
width=13cm,height=7cm,tick align=center]
\addplot[smooth]
coordinates{
(0.0001,2)
(0.999999,2)
};
\end{axis}
\begin{axis}[axis y line*=right,
axis x line=none,width=13cm,height=7cm]
\addplot[dotted]
coordinates{
(0.0001, 1)
(0.99999,1)};
\end{axis}
\end{tikzpicture}
\end{document}