[pstricks] \psplot ans \parametricplot
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Mon Jan 19 15:50:13 CET 2009
Hello all,
the new version of pstricks-add defines a new optional
argument for \psplot and \parametricplot.
\psplot[settings]{x0}{x1}[PS args]{ y(x) }
\parametricplot[settings]{t0}{t1}[PS args]{ x(t) y(t) }
PS args is passed directly to PostScript which makes
the use of \pstVerb superfluous, e.g.
\documentclass{article}
\usepackage{pstricks-add}
\begin{document}
\psset{xAxisLabel=t, yAxisLabel=U}
\begin{psgraph}{->}(0,0)(0,-1.5)(11,1.5){12cm}{8cm}
\makeatletter
\psplot[plotpoints=20,linecolor=red,linewidth=2pt]{0}{10}
[ /yMax 1 def /T0 1 def /T1 T0 def ]% <=== this is new !!!!
{ x T1 gt {
T1 yMax \tx at ScreenCoor
2 copy 4 2 roll L neg L
/yMax yMax neg def /T1 T1 T0 add def } if yMax }
\end{psgraph}
\end{document}
Herbert
More information about the PSTricks
mailing list