[pstricks] Problems with multido package
Herbert Voss
LaTeX at zedat.fu-berlin.de
Sun Jun 19 22:16:34 CEST 2005
Rafael Castro wrote:
> Thanks Herbert, finally I could use this package (I really don't not
> how). I have been using this weekend Pstricks in order to get some
> experience and it is really wonderful. I have tried this code from
> internet, but I have two questions:
>
> 1. There is some information about how to write matematical formulas
> with Postscript, becuase for me it is quite difficult.
It just works like the HP-pocket calculators (postfix notation).
Read the documentation of pstricks-add or infixplot for using
the infix notation (algebraic) for plotting functions.
> 2. I have trouble when I run this code to pdf.
see http://PSTricks.tug.org/main.cgi?file=pdf/pdfoutput
the following example uses pst-pdf and the script ps4pdf
http://perce.de/LaTeX/pst-pdf/
Herbert
\documentclass[12pt]{article}
\usepackage{pstricks}
\definecolor{light}{rgb}{0.3,0.4,0.6}
\usepackage{pst-3dplot}
\usepackage{pst-pdf}
\pagestyle{empty}
\def\drawCircles{%
\parametricplotThreeD[xPlotpoints=100](80,360)(0,360){%
/k 2 def /k2 4 def
t cos k mul 3 u sin k mul add mul
t sin k mul 3 u sin k mul add mul
u cos k2 mul
}
\parametricplotThreeD[yPlotpoints=75](0,360)(80,360){%
/k 2 def /k2 4 def
u cos k mul 3 t sin k mul add mul
u sin k mul 3 t sin k mul add mul
t cos k2 mul
}
\parametricplotThreeD[yPlotpoints=1,linecolor=red,linewidth=2pt](0,360)(80,360){%
/k 2 def /k2 4 def
u cos k mul 3 t sin k mul add mul
u sin k mul 3 t sin k mul add mul
t cos k2 mul
}}
\begin{document}
\psset{unit=0.75}
\begin{pspicture}(-10,-6)(10,6)
\psset{Beta=20,Alpha=50,linewidth=0.1pt,linecolor=light}
\drawCircles
\end{pspicture}
\clearpage
\begin{pspicture}(-10,-10)(10,10)
\psset{Beta=90,Alpha=50,linewidth=0.1pt,linecolor=light}
\drawCircles
\end{pspicture}
\clearpage
\begin{pspicture}(-10,-6)(10,6)
\psset{Beta=0,Alpha=50,linewidth=0.1pt,linecolor=light}
\drawCircles
\end{pspicture}
\end{document}
More information about the PSTricks
mailing list