[pstricks] pst-plot: mirrored ticks with frames

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Fri Aug 20 13:48:05 CEST 2004


Martin Buchmann wrote:

> i hope i didn't miss anything in the docs but i want to have a frame as 
> axesstyle and the ticks mirrored on the x2/y2 axes. gnuplot's users 
> should be familiar with that. Right now i'm doing this:

[ ... ]


> Which works fine but is a bit clumsy. Would an option 'ticksmirrored' be 
> hard to implement?

\documentclass[a4paper,12pt]{article}
\usepackage{pstricks-add}

\let\mypsgraph\psgraph
\def\psgraph[#1](#2)(#3)#4#5{%
   \mypsgraph[#1](#2)(#3){#4}{#5}%
   \psaxes[axesstyle=frame,labels=none,tickstyle=bottom](#3)(0,0)(#3)
}
\begin{document}

\def\data{0 0 1 1 2 4 3 9}
\begin{psgraph}[axesstyle=axes,tickstyle=top](0,0)(3.0,9.0){12cm}{9cm}
     \listplot[dotstyle=*,plotstyle=dots]{\data}
\end{psgraph}

\end{document}



Herbert



-- 
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes




More information about the PSTricks mailing list