PEP8 fixes on the figure module
FIX added \n in an error message
Merge pull request #1716 from NelleV/pep8_figure

PEP8 fixes on the figure module