3 ms·
This is the code from the beginning of the tutorial: # make some test data import numpy x = numpy.linspace(0, 10) y = x ** 2 # plot it
by ketralnis 9y ago
This is the code from the beginning of the tutorial:
# make some test data
import numpy
x = numpy.linspace(0, 10)
y = x ** 2
# plot it
import toyplot
canvas = toyplot.Canvas(width=300, height=300)
axes = canvas.cartesian()
mark = axes.plot(x, y)
3 lines excluding the import doesn't strike me as a remarkable amount of boilerplate