2

In PSTricks, is there a way to flip the axis labels upside down? Or achieve the same effect by some other means? Thanks.

[edit]

Here's my document so far. I just need the numbers upside down. It is going to be part of a 3D scene, and I will be looking at the axes from the opposite direction.

[edit]

\documentclass{article}

\usepackage{nopageno,pst-node,pst-plot}

\begin{document}

\psset{linecolor=black,linewidth=1pt,arrowsize=8pt,unit=1px}
\begin{pspicture}(-15,-15)(150,15)

  % Axes
  \psaxes[Dx=32,Dy=32,labels=none]{-}(-128,-128)(-128,-128)(128,128)
  \psset{linewidth=2pt}
  \psaxes[Dx=32,Dy=32,labels=all,ticksize=8pt,tickstyle=bottom,Ox=-128,Oy=-128]{-}(-128,-128)(-128,-128)(128,128)
  \uput{10pt}[70](-160,0){\psscalebox{1.25}{\itshape a}}
  \uput{10pt}[0](0,-160){\psscalebox{1.25}{\itshape b}}

\end{pspicture}

\end{document}

enter image description here

3
  • Could you attach your hand drawn sketch to this question? Nov 27, 2016 at 14:59
  • Updated with the document so far.
    – posfan12
    Nov 27, 2016 at 18:09
  • You should also post your code so far. Nov 27, 2016 at 18:33

1 Answer 1

1

Something like this?

\documentclass{article}
\usepackage{pst-plot,graphicx}
\def\pshlabel#1{\rotatebox{90}{#1}}
\def\psvlabel#1{\rotatebox{90}{#1}}
\begin{document}

\psset{linewidth=1pt,arrowsize=8pt,unit=1pt}
\begin{pspicture}(-150,-150)(150,150)
    \psset{linewidth=2pt}
    \psaxes[Dx=32,Dy=32,ticksize=-4pt 8pt,Ox=-128,Oy=-128]%
      (-128,-128)(-128,-128)(128,128)
    \uput{10pt}[70](-160,0){\large\itshape a}
    \uput{10pt}[0](0,-160){\large\itshape b}
\end{pspicture}

\end{document}

enter image description here

2
  • Some comments: This method seems to rotate the entire document, not just the axis labels. Is there a way to avoid that? Can the 'a' and 'b' text labels be rotated as well?
    – posfan12
    Nov 27, 2016 at 21:29
  • Never mind. It seems to be working now.
    – posfan12
    Nov 28, 2016 at 8:02

You must log in to answer this question.

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