lysCanvas
Base class of canvas
Components of canvas
Interface to data
Interface to annotationsss
Use canvas as widget
- class lys.widgets.canvas.GraphWindow.lysCanvas(lib='matplotlib')[source]
Return canvas widget.
- Parameters
lib ('matplotlib' or 'pyqtgraph') – The library used to generate the widget.
Example:
from lys import Wave, append, widgets # you can use lysCanvas as usual Qt wiget c = widgets.lysCanvas() c.Append(Wave([1,2,3])) # you can use 'append' function for lysCanvas append([2,3,4]) c.show()