Spectral plot unit tests #1906

merged 3 commits into from Apr 16, 2013


None yet

4 participants


Unit tests for the spectral plot types (specgram, psd, and csd) and corresponding mlab functions.

mdboom commented Apr 15, 2013

Very nice and much needed pull request.

I wonder, however, whether we need to test all three of png, pdf and svg for these. The pdf and svg files in particular are quite large. (Yes, I know our test suite already has some files of that size, but all the more reason to avoid expanding further... 😉). Maybe we should test PNG only (as those are the smallest files), unless there is some known bug that shows up only with the other formats. Note, we currently do this for the delaunay triangulation tests for the same reason.


Yes. Also, there still appears to be some text on some of the output files.


I've restricted it to only pngs and removed the text from the images


Fixed for python 2.6

pelson commented Apr 16, 2013


mdboom commented Apr 16, 2013

Looks good -- and thanks for amending the commit so the PDFs and SVGs don't make it into the history.


@mdboom mdboom merged commit f39cdb6 into matplotlib:master Apr 16, 2013

1 check passed

default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment