Check and clamp plot dimensions when there's too much padding

Fixes #190