#!/usr/bin/env python
from vtk import *

reader2 = vtkXMLTreeReader()
reader2.SetFileName("vtkclasses.xml")
reader2.Update()

reader3 = vtkXMLTreeReader()
reader3.SetFileName("vtklibrary.xml")
reader3.Update()

view2 = vtkTreeMapView()
view2.SetRepresentationFromInput(reader2.GetOutput())
view2.SetAreaSizeArrayName("size")
view2.SetAreaColorArrayName("vertex id")
view2.SetAreaLabelArrayName("id")
view2.SetAreaLabelVisibility(True)
view2.SetAreaHoverArrayName("id")
view2.SetShrinkPercentage(0.02)
view2.Update()

view3 = vtkTreeRingView()
view3.SetRepresentationFromInput(reader3.GetOutput())
view3.SetAreaSizeArrayName("size")
view3.SetAreaColorArrayName("vertex id")
view3.SetAreaLabelArrayName("id")
view3.SetAreaLabelVisibility(True)
view3.SetAreaHoverArrayName("id")
view3.SetShrinkPercentage(0.02)
view3.SetRootAtCenter(True)
view3.Update()

# Apply a theme to the views
theme = vtkViewTheme.CreateMellowTheme()
view2.ApplyViewTheme(theme)
view3.ApplyViewTheme(theme)
theme.FastDelete()

view2.ResetCamera()
view3.ResetCamera()
view2.Render()
view3.Render()

view2.GetInteractor().Start()

55640e7c0a2c610ab0ca498f63d1404b047b8b6b
<mask token>

<mask token>
reader2.SetFileName('vtkclasses.xml')
reader2.Update()
<mask token>
reader3.SetFileName('vtklibrary.xml')
reader3.Update()
<mask token>
view2.SetRepresentationFromInput(reader2.GetOutput())
view2.SetAreaSizeArrayName('size')
view2.SetAreaColorArrayName('vertex id')
view2.SetAreaLabelArrayName('id')
view2.SetAreaLabelVisibility(True)
view2.SetAreaHoverArrayName('id')
view2.SetShrinkPercentage(0.02)
view2.Update()
<mask token>
view3.SetRepresentationFromInput(reader3.GetOutput())
view3.SetAreaSizeArrayName('size')
view3.SetAreaColorArrayName('vertex id')
view3.SetAreaLabelArrayName('id')
view3.SetAreaLabelVisibility(True)
view3.SetAreaHoverArrayName('id')
view3.SetShrinkPercentage(0.02)
view3.SetRootAtCenter(True)
view3.Update()
<mask token>
view2.ApplyViewTheme(theme)
view3.ApplyViewTheme(theme)
theme.FastDelete()
view2.ResetCamera()
view3.ResetCamera()
view2.Render()
view3.Render()
view2.GetInteractor().Start()

<mask token>
reader2 = vtkXMLTreeReader()
reader2.SetFileName('vtkclasses.xml')
reader2.Update()
reader3 = vtkXMLTreeReader()
reader3.SetFileName('vtklibrary.xml')
reader3.Update()
view2 = vtkTreeMapView()
view2.SetRepresentationFromInput(reader2.GetOutput())
view2.SetAreaSizeArrayName('size')
view2.SetAreaColorArrayName('vertex id')
view2.SetAreaLabelArrayName('id')
view2.SetAreaLabelVisibility(True)
view2.SetAreaHoverArrayName('id')
view2.SetShrinkPercentage(0.02)
view2.Update()
view3 = vtkTreeRingView()
view3.SetRepresentationFromInput(reader3.GetOutput())
view3.SetAreaSizeArrayName('size')
view3.SetAreaColorArrayName('vertex id')
view3.SetAreaLabelArrayName('id')
view3.SetAreaLabelVisibility(True)
view3.SetAreaHoverArrayName('id')
view3.SetShrinkPercentage(0.02)
view3.SetRootAtCenter(True)
view3.Update()
theme = vtkViewTheme.CreateMellowTheme()
view2.ApplyViewTheme(theme)
view3.ApplyViewTheme(theme)
theme.FastDelete()
view2.ResetCamera()
view3.ResetCamera()
view2.Render()
view3.Render()
view2.GetInteractor().Start()

from vtk import *
reader2 = vtkXMLTreeReader()
reader2.SetFileName('vtkclasses.xml')
reader2.Update()
reader3 = vtkXMLTreeReader()
reader3.SetFileName('vtklibrary.xml')
reader3.Update()
view2 = vtkTreeMapView()
view2.SetRepresentationFromInput(reader2.GetOutput())
view2.SetAreaSizeArrayName('size')
view2.SetAreaColorArrayName('vertex id')
view2.SetAreaLabelArrayName('id')
view2.SetAreaLabelVisibility(True)
view2.SetAreaHoverArrayName('id')
view2.SetShrinkPercentage(0.02)
view2.Update()
view3 = vtkTreeRingView()
view3.SetRepresentationFromInput(reader3.GetOutput())
view3.SetAreaSizeArrayName('size')
view3.SetAreaColorArrayName('vertex id')
view3.SetAreaLabelArrayName('id')
view3.SetAreaLabelVisibility(True)
view3.SetAreaHoverArrayName('id')
view3.SetShrinkPercentage(0.02)
view3.SetRootAtCenter(True)
view3.Update()
theme = vtkViewTheme.CreateMellowTheme()
view2.ApplyViewTheme(theme)
view3.ApplyViewTheme(theme)
theme.FastDelete()
view2.ResetCamera()
view3.ResetCamera()
view2.Render()
view3.Render()
view2.GetInteractor().Start()

#!/usr/bin/env python
from vtk import *

reader2 = vtkXMLTreeReader()
reader2.SetFileName("vtkclasses.xml")
reader2.Update()

reader3 = vtkXMLTreeReader()
reader3.SetFileName("vtklibrary.xml")
reader3.Update()

view2 = vtkTreeMapView()
view2.SetRepresentationFromInput(reader2.GetOutput())
view2.SetAreaSizeArrayName("size")
view2.SetAreaColorArrayName("vertex id")
view2.SetAreaLabelArrayName("id")
view2.SetAreaLabelVisibility(True)
view2.SetAreaHoverArrayName("id")
view2.SetShrinkPercentage(0.02)
view2.Update()

view3 = vtkTreeRingView()
view3.SetRepresentationFromInput(reader3.GetOutput())
view3.SetAreaSizeArrayName("size")
view3.SetAreaColorArrayName("vertex id")
view3.SetAreaLabelArrayName("id")
view3.SetAreaLabelVisibility(True)
view3.SetAreaHoverArrayName("id")
view3.SetShrinkPercentage(0.02)
view3.SetRootAtCenter(True)
view3.Update()

# Apply a theme to the views
theme = vtkViewTheme.CreateMellowTheme()
view2.ApplyViewTheme(theme)
view3.ApplyViewTheme(theme)
theme.FastDelete()

view2.ResetCamera()
view3.ResetCamera()
view2.Render()
view3.Render()

view2.GetInteractor().Start()
