[pstricks] framing overlapping objects
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Tue Aug 17 21:10:43 CEST 2004
Matthias Thomae wrote:
> Does anyone know a solution for this, maybe using something different
> than a psmatrix, or how to get the psmatrix to calculate its borders
> 'correctly' in such a case?
you can use \rput with the optional argument
Herbert
\documentclass{article}
\usepackage{pst-all}% only pst-all, it loads pstricks.sty anyway
\def\mydata{ 0 0 3 1 5 2.5}
\def\legend{%
\psframebox{%
\begin{psmatrix}[rowsep=0.0cm]
\bf legend \psspan{2} \\
par 1 & val 1 \\
par 2 & val 2
\end{psmatrix}%
}%
}
\begin{document}
text above
\psframebox{
\begin{pspicture}(-1,-1)(5,5)
\rput[lt](1,5){\legend}
\psaxes(0,0)(5,5)
\listplot[plotstyle=line,showpoints=true]{\mydata}
\end{pspicture}
}
text below
\end{document}
--
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