Use the non plot version of specgram; tidy up