[pstricks] multi-plot
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Wed Jun 24 17:16:23 CEST 2009
Ruhollah Tavakoli schrieb:
> I want to have couple of xy-plots in one sheet, e.g. a graph at left-hand
> side and a graph at right-hand side. what is the best method to do this, an
> example can be helpful (something like "multiplot" command in gnuplot
> media)?
You can use \multido or \psforeach or ...
\documentclass{minimal}
\usepackage{pstricks-add}
\begin{document}
\begin{pspicture}(10,15)
\multido{\iA=0+5}{2}{\multido{\iB=0+5}{3}{%
\rput[lb](\iA,\iB){%
\pspicture*(-2,-0.5)(4,4.2)
\psplot[linewidth=1.5pt]{-2}{2}{%
x dup mul \iA\space 1 add mul \iB\space 1 add div}
\psaxes{->}(0,0)(-2,0)(2,4)[x,-90][y,180]
\endpspicture*}}}
\end{pspicture}
\end{document}
Herbert
More information about the PSTricks
mailing list