toyplot.qt module¶
Support functions for rendering using Qt.
-
toyplot.qt.
application
()[source]¶ Return a singleton QApplication instance.
If an instance of
QApplication
has already been created, returns it. Otherwise, an instance of QApplication is created and returned.Returns: qapplication – The Qt global singleton application object. Return type: QApplication
-
toyplot.qt.
show
(canvas, title='Toyplot Figure')[source]¶ Display a canvas in a Qt window.
Displays a Toyplot canvas in a popup Qt window, using Toyplot’s preferred interactive HTML+SVG+Javascript backend.
Note: this function blocks until the user closes the figure window.
Parameters: - canvas (
toyplot.canvas.Canvas
) – The canvas to be displayed. - title (string, optional) – Optional page title to be displayed in the window.
- canvas (