Jump to my Home Page Send me a message Check out stuff on GitHub Check out my photography on Instagram Check out my profile on LinkedIn Check out my profile on reddit Check me out on Facebook

Mitch Richling: Example Postscript Programs

Author: Mitch Richling
Updated: 2023-11-16

Table of Contents

1. Introduction

Postscript is more than an just a vector image file format, it is a programming language. As a programming language, it may be exploited to great advantage for mathematical illustrations as has been so well documented in Bill Casselman's book. On this page are a few basic examples to get you started.

Get it all on github: https://github.com/richmit/ex-postscript/

2. Computational Postscript and Nonlinear Dynamics

lorenz1.ps
Computes a projection of Lorenz's famous strange attractor!
lorenz1_thm.png
lorenz2.ps
Computes a projection of Lorenz's famous strange attractor in COLOR!
lorenz2_thm.png
mandelbrot.ps
Computes an image of the Mandelbrot set. Note that this one can take a while to run.
mandelbrot_thm.png

3. Watermarks for LaTeX documents

I like to include a watermark on my draft documents that identify them as drafts. Here is a nice way to create such watermarks that always scale with no artifacts and require only a very tiny quantity of code to implement. I include them in my documents via the AddToShipoutPicture command.

draftBig.eps
A single large "DRAFT" is spread across the entire page diagonally in red.
draftTiny.eps
Tiny copies of the word "DRAFT" are spread across the entire page in red.
draftBoth.eps
A combination of the previous two — i.e. one big "DRAFT" and many little ones in red.