9

I know that the PSTricks packages for plotting, pst-plot and pst-3dplot, use PostScript operators and Reverse Polish Notation. Is there a comprehensive list of all the operators available, with a guide on such notation?

1
11

You can find them in a manual of PostScript language.

See PostScript Language Reference, third edition

And for convinience, The PostScript Language Tutorial and Cookbook and PostScript Language Program Design are easier to read. You can find them at Adobe PostScript SDK Archive


Maybe you have known that, PSTricks can also use infix expression to plot functions, with help of algebraic=true. For example:

\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\psset{algebraic=true}
\begin{pspicture}(-4,-1.5)(4,1.5)
\psaxes(0,0)(-3.5,-1.5)(3.5,1.5)
\psplot[linecolor=blue]{-3.14}{3.14}{sin(x)}
\end{pspicture}
\end{document}

enter image description here

Supported functions:

+ - * / ^
sin, cos, tan, acos, asin (in radians)
log, ln
ceiling, floor, truncate, round, sqrt, abs, fact (for the factorial)
Sum (for building sums)
IfTE (for an easy case structure)

See manual pst-news10 for details.

2
  • +1 The PS operators wont be listed by pstricks itself. – Martin Scharrer Apr 7 '11 at 10:24
  • 1
    What do you mean with "wont be listed"? – user2478 Apr 7 '11 at 14:45
3

The language reference is a bit heavyweight. This is the reference I use: Alphabetic list of PostScript commands. Comprehensive, yet browsable. In case that reference goes away, one can likely find a mirror searching for page titles containing Postscript Level 2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy