<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt'>
<p class="p1">I currently have two viewports (a left and right viewport) but the interactorstlye for the right viewport isn't working correctly. It should display the labels of the different slices of the pie chart on hover, but the hovering only works in the left viewport. It looks like the "position" of the interactor is off. I attached a screenshot of this issue (this is when my mouse is hovering over the left viewport).</p>
<p class="p1"> </p>
<p class="p1"># Set up a 2D scene, add a chart to it</p>
<p class="p2">view = vtk.vtkContextView()</p>
<p class="p2">chart = vtk.vtkChartPie()</p>
<p class="p3"> </p>
<p class="p1"># Add renderer to render window and set viewport</p>
<p class="p2">renWin.AddRenderer(view.GetRenderer())</p>
<p class="p2">view.GetScene().AddItem(chart)</p>
<p class="p2">view.GetRenderer().SetViewport(viewport2[<span class="s1">0</span>], viewport2[<span class="s1">1</span>], viewport2[<span class="s1">2</span>], viewport2[<span class="s1">3</span>])</p>
<p class="p3"> </p>
<p class="p1"># Allow interactive <span class="s2">piechart</span></p>
<p class="p2">style = vtk.vtkContextInteractorStyle()</p>
<p class="p2">style.SetScene(view.GetScene())</p>
<p class="p2">renWinInter.SetInteractorStyle(style)</p>

</body></html>