Showing posts with label parametric plot. Show all posts
Showing posts with label parametric plot. Show all posts

Sunday, April 8, 2012

Parametric plots

Besides the usual Cartesian coordinate plots and polar plots, Pstricks also can realize parametric plots. The command is "\psparametricplot[options]{t0}{t1}{x(t) y(t)}". "t0" and "t1" are the begin and end value of variable t. "x(t)" and "y(t)" are interpreted as the parametric plot functions.

Now we come to practice on this command.

\documentclass{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\usepackage{pst-plot}
\psset{unit=3cm}
\begin{document}
  \psset{plotpoints=500}
  \begin{psgraph}(-1,-1)(1,1){5cm}{5cm}
    \psparametricplot{0}{360}
    {2 t mul sin 3 t mul cos}
    %sin(2t),cos(3t)
  \end{psgraph}
\end{document}
Fig.1 parametric plots in pstricks

Files Download: tex ps pdf
Creative Commons License
Except as otherwise noted, the content of this page is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.