Thanks! That did the trick. I am doing everything in Python...here's a sketch of the working code<br><br>class VTKPlotInterface()<br> def __init__(self):<br> self.contextActor = vtk.vtkContextActor()<br> self.chart = vtk.vtkChartXY()<br>
self.contextActor.GetScene().AddItem(self.chart)<br> ....(other chart properties)<br> def addPoints()<br> def addPlot()<br><br>Then I attach to my pre-existing Renderer:<br>self.graphicsFrameWidget.ren.AddActor(chartXY.contextActor)<br>
<br><br><br><div class="gmail_quote">On Tue, Nov 15, 2011 at 9:56 AM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Tue, Nov 15, 2011 at 9:24 AM, list user <<a href="mailto:quasilister@gmail.com">quasilister@gmail.com</a>> wrote:<br>
> Is there a way to attach a vtkChartXY object to an existing Renderer. A<br>
> similar issue has come up on the listerv where it was suggested to remove an<br>
> existing Renderer and attach the vtkChartXY to vtkContextView and use<br>
> vtkContextView's Renderer:<br>
> <a href="http://www.vtk.org/pipermail/vtkusers/2011-February/115121.html" target="_blank">http://www.vtk.org/pipermail/vtkusers/2011-February/115121.html</a><br>
><br>
> For my application, I am using the same Renderer to switch between different<br>
> "views" of actors (Cell View, Concentration View, etc) and actors are<br>
> removed and added. Is there away to accommodate my current setup of a<br>
> single Renderer?<br>
><br>
> using vtk 5.8.0<br>
<br>
</div></div>You can use the vtkContextActor, and would need to set up the<br>
interactor style etc in much the same way as vtkContextView does. The<br>
vtkContextActor has a scene that can then have a chart added to it.<br>
<font color="#888888"><br>
Marcus<br>
</font></blockquote></div><br>