[pstricks] reverse axes

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Wed Oct 22 18:15:59 CEST 2003


Peter I. Hansen schrieb:

> \begin{pspicture}(0,0)(10,10)
>         \psgrid[subgriddiv=1,griddots=10]
>         \psline[linewidth=0.2pt]{->}(0,0)(10,10)
> \end{pspicture}
> 
> Is it possible to have (0,0) in the bottom right corner, and then place
> (10,10) in the upper left or bottom left??

here is an easier solution with pst-plot

Herbert


\documentclass[12pt,a4paper]{article}
\usepackage{pst-plot}
\parindent=0pt
\newcount\maxX\maxX=10
\newcount\maxY\maxY=10
\newcount\dummy
\def\psvlabel#1{\dummy=\maxY\advance\dummy by -#1 \the\dummy}
\def\pshlabel#1{\dummy=\maxX\advance\dummy by -#1 \the\dummy}
\begin{document}

\begin{pspicture}(0,0)(\the\maxX,\the\maxY)
         \psgrid[subgriddiv=0,griddots=10,gridlabels=0pt]
		\psaxes[linewidth=0.2pt](0,0)(\the\maxX,\the\maxY)
         \psline[linewidth=0.2pt]{->}(0,0)(\the\maxX,\the\maxY)
\end{pspicture}

\end{document}



-- 
http://www.pstricks.de/




More information about the PSTricks mailing list