currently uses rect() for plotting but the PDFs have so many objects that they crash Preview