Various Spectrogram formats
You can print any function documentation by adding a question mark (
?) at the end of the function in the Python Notebook.
For example, printing the documentation for the
specgram() function is the following command:
matplotlib.pyplot.specgram? The partial output is as follows:
Figure 8.5 – Partial print definition of specgram()
The output is as follows:
Figure 8.6 – The print definition of draw_spectrogram()
From Figure 8.5, the simple one is changing the color map (
cmap) variable. There are more than 60 color maps in the Matplotlib...