Pretty Parametric Plots images to your local hard drive as either a rasterized PNG file or a scalable SVG file. Before running this, the user needs to install Inkscape, Firefox, the Python bindings for Selenium, and the Selenium web driver for Firefox."/>

Nathaniel R. Stickley

Software Engineer - Astrophysicist - Data Scientist

PPP Rendering Script

Here's a minimal Python script that saves Pretty Parametric Plots images to your local hard drive as either a rasterized PNG file or a scalable SVG file. Before running this, the user needs to install Inkscape, Firefox, the Python bindings for Selenium, and the Selenium web driver for Firefox. The easiest way to install the latter two is by using pip:

The minimal script (ppp.py) is here:

Example:

Example 2:

Note that the default DPI is 150. Also, note that background colors are not saved (the background is transparent), so some post-processing with a photo editor or graphics software is typically required.

Nathaniel R. Stickley
nrs@nrstickley.com
626-269-9830