Newer
Older
Create a Figure and an Axes and plot schedule in the Axes.
Parameters
----------
operation_gap : float, optional
The vertical distance between operations in the schedule. The height of
the operation is always 1.
fig, ax = plt.subplots()
self._plot_schedule(ax, operation_gap=operation_gap)
Generate an SVG of the schedule. This is automatically displayed in e.g.
Jupyter Qt console.
fig, ax = plt.subplots()
self._plot_schedule(ax)
buffer = io.StringIO()
fig.savefig(buffer, format="svg")
return buffer.getvalue()