2

I have not been able to change the negative y-axis labels to the right side of the y-axis. This is what I need:

enter image description here

And this is what I currently have compiled with 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}

enter image description here

Also I need to eliminate a zero from the origin so that only one remains. Thanks

1 Answer 1

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}

enter image description here

2
  • thank you so much
    – raulevm
    Commented Dec 14, 2023 at 20:45
  • you should accept answers if it is ok. Otherwise it will be left as unanwered ...
    – user187802
    Commented Dec 17, 2023 at 12:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .