fixed a bug in PrettyFig where plots of flat lines caused it to crash