pstricks에서 음의 y축 레이블을 오른쪽으로 변경

pstricks에서 음의 y축 레이블을 오른쪽으로 변경

음수 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}

여기에 이미지 설명을 입력하세요

또한 하나만 남도록 원점에서 0을 제거해야 합니다. 감사해요

답변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}

여기에 이미지 설명을 입력하세요

관련 정보