Fixing plot limits in plotpdf.py