Skip to main content

Module graph

Module graph 

Source
Expand description

Graphs of a score’s data: what music21’s graph plots. Graphs of a score’s data: music21’s graph, the data side.

What a plot shows is worked out here: the ticks and labels of an axis (axis), the plot a format and a list of quantities ask for (find), the layout numbers a graph primitive draws with (primitives), and colours and accidentals as matplotlib takes them (utilities). Drawing is matplotlib’s, and is the wheel’s to drive.

Modules§

axis
The ticks and labels of a graph’s axes: the numbers behind music21’s graph.axis classes.
find
Which plot a format and some quantities ask for: music21’s graph.findPlot.
primitives
The layout numbers music21’s graph primitives draw with: where the ticks of a count go, how big a weighted point is, and where a bar of a horizontal bar graph sits in its channel.
utilities
music21’s graph.utilities: colours as matplotlib takes them, and accidentals as its fonts can draw them.

Functions§

py_range
Python’s range(start, stop, step), which the tick rules count with.