toyplot/canvas moduleΒΆ

The toyplot/canvas module is a reference to the SVG element that contains the figure. For example:

context.require(dependencies=["toyplot/canvas"], code="""function(canvas)
{
    /* Make changes to the figure using canvas. */
}""")