differt.plotting.view_from_canvas#
- view_from_canvas(canvas)[source]#
Return the view from the specified canvas.
If the canvas does not have any view, create one and return it.
This utility is used by
process_vispy_kwargs.- Parameters:
canvas (
SceneCanvas) – The canvas that draws the contents of the scene.- Return type:
- Returns:
The view on which contents are displayed.