fixing plot_spectrum
#429

JoschD wants to merge bug_matplotlib38 into master

We do not currently have an analysis of these two commits