In [1]:
import numpy
import toyplot.qt.pdf
import toyplot.qt.png
In [2]:
canvas, axes, mark = toyplot.plot(numpy.linspace(0, 1)**2, width=300)
In [3]:
toyplot.qt.png.render(canvas, "test-qt.png")
toyplot.qt.png.render(canvas, "test-qt-2.png", scale=2)
In [4]:
toyplot.qt.pdf.render(canvas, "test-qt.pdf")
toyplot.qt.pdf.render(canvas, "test-qt-2.pdf", scale=2)
In [ ]: