python_view is a module providing access to a PythonView. It is possible to use the PythonView API directly, but this module provides convenience classes in Python.
paraview.python_view.
call_render
(render_function, view, width, height)[source]¶@parameter view vtkPythonView object @parameter width Width of view @parameter height Height of view
paraview.python_view.
call_setup_data
(setup_data_function, view)[source]¶@parameter view vtkPythonView object
paraview.python_view.
figure_to_data
(figure)[source]¶@brief Convert a Matplotlib figure to a numpy 2D array with RGBA uint8 channels and return it. @param figure A matplotlib figure. @return A numpy 2D array of RGBA values.
paraview.python_view.
figure_to_image
(figure)[source]¶@brief Convert a Matplotlib figure to a vtkImageData with RGBA unsigned char channels @param figure A matplotlib figure. @return a vtkImageData with the Matplotlib figure content