librosa.display.ChromaFormatter

class librosa.display.ChromaFormatter[source]

A formatter for chroma axes

Examples

>>> import matplotlib.pyplot as plt
>>> values = np.arange(12)
>>> plt.figure()
>>> ax = plt.gca()
>>> ax.plot(values)
>>> ax.yaxis.set_major_formatter(librosa.display.ChromaFormatter())
>>> ax.set_ylabel('Pitch class')

(Source code)

../_images/librosa-display-ChromaFormatter-1.png
__init__($self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.