notebook.community
Edit and run
In [1]: %load_ext gvmagic
%load_ext gvmagic
In [2]: %%dot digraph G { node [shape=box]; rankdir = "RL"; "toyplot.cairo.eps.render" -> "toyplot.cairo.render"; "toyplot.cairo.pdf.render" -> "toyplot.cairo.render"; "toyplot.cairo.png.render" -> "toyplot.cairo.render"; "toyplot.cairo.png.frames" -> "toyplot.cairo.render"; "toyplot.cairo.render" -> "toyplot.svg.render" "toyplot.qt.pdf.render" -> "toyplot.svg.render" "toyplot.qt.png.render" -> "toyplot.svg.render" "toyplot.qt.png.frames" -> "toyplot.svg.render" "toyplot.mp4.render" -> "toyplot.png.frames" "toyplot.webm.render" -> "toyplot.png.frames" "toyplot.png.frames" -> "toyplot.qt.png.frames" "toyplot.png.render" -> "toyplot.qt.png.render" "toyplot.pdf.render" -> "toyplot.qt.pdf.render" "toyplot.svg.render" -> "toyplot.html.render" "toyplot.browser.show" -> "toyplot.html.render"; "toyplot.qt.show" -> "toyplot.html.render"; }
%%dot digraph G { node [shape=box]; rankdir = "RL"; "toyplot.cairo.eps.render" -> "toyplot.cairo.render"; "toyplot.cairo.pdf.render" -> "toyplot.cairo.render"; "toyplot.cairo.png.render" -> "toyplot.cairo.render"; "toyplot.cairo.png.frames" -> "toyplot.cairo.render"; "toyplot.cairo.render" -> "toyplot.svg.render" "toyplot.qt.pdf.render" -> "toyplot.svg.render" "toyplot.qt.png.render" -> "toyplot.svg.render" "toyplot.qt.png.frames" -> "toyplot.svg.render" "toyplot.mp4.render" -> "toyplot.png.frames" "toyplot.webm.render" -> "toyplot.png.frames" "toyplot.png.frames" -> "toyplot.qt.png.frames" "toyplot.png.render" -> "toyplot.qt.png.render" "toyplot.pdf.render" -> "toyplot.qt.pdf.render" "toyplot.svg.render" -> "toyplot.html.render" "toyplot.browser.show" -> "toyplot.html.render"; "toyplot.qt.show" -> "toyplot.html.render"; }
G toyplot.cairo.eps.render toyplot.cairo.eps.render toyplot.cairo.render toyplot.cairo.render toyplot.cairo.eps.render->toyplot.cairo.render toyplot.svg.render toyplot.svg.render toyplot.cairo.render->toyplot.svg.render toyplot.cairo.pdf.render toyplot.cairo.pdf.render toyplot.cairo.pdf.render->toyplot.cairo.render toyplot.cairo.png.render toyplot.cairo.png.render toyplot.cairo.png.render->toyplot.cairo.render toyplot.cairo.png.frames toyplot.cairo.png.frames toyplot.cairo.png.frames->toyplot.cairo.render toyplot.html.render toyplot.html.render toyplot.svg.render->toyplot.html.render toyplot.qt.pdf.render toyplot.qt.pdf.render toyplot.qt.pdf.render->toyplot.svg.render toyplot.qt.png.render toyplot.qt.png.render toyplot.qt.png.render->toyplot.svg.render toyplot.qt.png.frames toyplot.qt.png.frames toyplot.qt.png.frames->toyplot.svg.render toyplot.mp4.render toyplot.mp4.render toyplot.png.frames toyplot.png.frames toyplot.mp4.render->toyplot.png.frames toyplot.png.frames->toyplot.qt.png.frames toyplot.webm.render toyplot.webm.render toyplot.webm.render->toyplot.png.frames toyplot.png.render toyplot.png.render toyplot.png.render->toyplot.qt.png.render toyplot.pdf.render toyplot.pdf.render toyplot.pdf.render->toyplot.qt.pdf.render toyplot.browser.show toyplot.browser.show toyplot.browser.show->toyplot.html.render toyplot.qt.show toyplot.qt.show toyplot.qt.show->toyplot.html.render
In [3]: from PyQt5.QtWidgets import QApplication import sys application = QApplication(sys.argv)
from PyQt5.QtWidgets import QApplication import sys application = QApplication(sys.argv)
In [4]: import numpy import toyplot canvas, axes, mark = toyplot.scatterplot(numpy.linspace(0, 1)**2, width=300, canvas_style={"background-color":"transparent"})
import numpy import toyplot canvas, axes, mark = toyplot.scatterplot(numpy.linspace(0, 1)**2, width=300, canvas_style={"background-color":"transparent"})
010203040500.00.51.0Save as .csv
In [5]: import toyplot.png toyplot.png.render(canvas, "test-cairo.png")
import toyplot.png toyplot.png.render(canvas, "test-cairo.png")
In [6]: import toyplot.pdf toyplot.pdf.render(canvas, "test-cairo.pdf")
import toyplot.pdf toyplot.pdf.render(canvas, "test-cairo.pdf")
In [7]: import toyplot.cairo.eps toyplot.cairo.eps.render(canvas, "test-cairo.eps")
import toyplot.cairo.eps toyplot.cairo.eps.render(canvas, "test-cairo.eps")
In [8]: import toyplot.qt #toyplot.qt.show(canvas)
import toyplot.qt #toyplot.qt.show(canvas)
In [9]: import toyplot.qt.pdf toyplot.qt.pdf.render(canvas, "test-qt.pdf")
import toyplot.qt.pdf toyplot.qt.pdf.render(canvas, "test-qt.pdf")
In [10]: import toyplot.qt.png toyplot.qt.png.render(canvas, "test-qt.png")
import toyplot.qt.png toyplot.qt.png.render(canvas, "test-qt.png")