Files
ThirdParty-6/ParaView-5.0.1/VTK/Examples/Infovis/Python/hello_world.py

16 lines
275 B
Python

#!/usr/bin/env python
from vtk import *
source = vtkRandomGraphSource()
view = vtkGraphLayoutView()
view.AddRepresentationFromInputConnection(source.GetOutputPort())
view.GetRenderWindow().SetSize(600, 600)
view.ResetCamera()
view.Render()
view.GetInteractor().Start()