
我無法將負 y 軸標籤變更為 y 軸右側。這就是我需要的:
這是我目前用 XeLaTex 編譯的:
\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\begin{pspicture*}(-3,-3)(3,3)
%\psgrid[gridcolor=orange!20,subgridcolor=orange!10]
\psaxes{->}(0,0)(-2.5,-2.5)(2.5,2.5)[$x$,0] [$y$,90]
\psline(-1,-1)(0,-1)
\psline(0,1)(1,1)
\psdots[dotstyle=Bo](-1,-1)
\psdots(0,1)
\end{pspicture*}
\end{document}
另外,我需要從原點消除一個零,這樣就只剩下一個了。謝謝
答案1
\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\begin{pspicture*}(-3,-3)(3,3)
%\psgrid[gridcolor=orange!20,subgridcolor=orange!10]
\psaxes[showorigin=false]{->}(0,0)(-2.5,0)(2.5,2.5)[$x$,0] [$y$,90]
\psaxes[xAxis=false,ylabelPos=right,showorigin=false](0,0)(-2.5,-2.5)(2.5,0)
\rput[t](-0.15,\dimexpr-\pslabelsep-2pt){\pshlabel{0\strut}}%
\psline(-1,-1)(0,-1)
\psline(0,1)(1,1)
\psdots[dotstyle=Bo](-1,-1)
\psdots(0,1)
\end{pspicture*}
\end{document}