librosa.display.TonnetzFormatter

class librosa.display.TonnetzFormatter[source]

A formatter for tonnetz axes

Examples

>>> import matplotlib.pyplot as plt
>>> values = np.arange(6)
>>> plt.figure()
>>> ax = plt.gca()
>>> ax.plot(values)
>>> ax.yaxis.set_major_formatter(librosa.display.TonnetzFormatter())
>>> ax.set_ylabel('Tonnetz')

(Source code)

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

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