<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Gerald,<br>
    <br>
    your example isn't complete, also I had to make some substantial
    changes(based on the TestLinePlot.cxx ctest) it to get it to work.
    At any rate, to figure out if you're problem is self inflicted or
    not, to keep this simple use VTK and not PV for now, cd into a VTK
    build and run the following command:<br>
    <br>
    ctest -R TestLinePlot --verbose<br>
    <br>
    if those tests pass, then you can use TestLinePlot.cxx as an example
    of how it should be done. If they fail then that's something we can
    work with. report the test output from one of the failing tests.
    Once you figure out exactly what's going on, then try using VTK
    that's in PV.<br>
    <br>
    Thanks<br>
    Burlen<br>
    <br>
    <div class="moz-cite-prefix">On 12/09/2013 12:19 AM, Lodron, Gerald
      wrote:<br>
    </div>
    <blockquote
cite="mid:E70FE8EA6EBE9241BDB4CA6D8D12E1D801C245214001@RZJC1EX.jr1.local"
      type="cite">
      <p class="MsoNormal"
        style="text-indent:35.4pt;text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;color:#010001;mso-fareast-language:DE-AT"
          lang="EN-GB">vtkContextView</span><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">* <span
            style="color:#010001">poContextView</span> = <span
            style="color:#010001">vtkContextView</span>::<span
            style="color:#010001">New</span>();<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poContextView</span>-&gt;<span
            style="color:#010001">GetRenderer</span>()-&gt;<span
            style="color:#010001">SetBackground</span>(1.0, 1.0, 1.0);<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">vtkChartXY</span>* <span
            style="color:#010001">poChart</span> = <span
            style="color:#010001">vtkChartXY</span>::<span
            style="color:#010001">New</span>();<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poChart</span>-&gt;<span
            style="color:#010001">GetAxis</span>(1)-&gt;<span
            style="color:#010001">SetTitle</span>( <span
            style="color:#A31515">"xaxis"</span> );<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poChart</span>-&gt;<span
            style="color:#010001">GetAxis</span>(0)-&gt;<span
            style="color:#010001">SetTitle</span>( <span
            style="color:#A31515">"yaxis"</span> );<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poChart</span>-&gt;<span
            style="color:#010001">SetTitle</span>( <span
            style="color:#A31515">"Title"</span> );<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poContextView</span>-&gt;<span
            style="color:#010001">GetScene</span>()-&gt;<span
            style="color:#010001">AddItem</span>(<span
            style="color:#010001">poChart</span>);<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:green">// Create a poTable with some points in
            it...<o:p></o:p></span></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">vtkTable</span>* <span
            style="color:#010001">poTable</span> = <span
            style="color:#010001">vtkTable</span>::<span
            style="color:#010001">New</span>();<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">vtkSmartPointer</span>&lt;<span
            style="color:#010001">vtkDoubleArray</span>&gt; <span
            style="color:#010001">oXAxis</span> = <span
            style="color:#010001">vtkSmartPointer</span>&lt;<span
            style="color:#010001">vtkDoubleArray</span>&gt;::<span
            style="color:#010001">New</span>();<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">oXAxis</span>-&gt;<span
            style="color:#010001">SetName</span>(<span
            style="color:#A31515">"xaxis"</span>);<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poTable</span>-&gt;<span
            style="color:#010001">AddColumn</span>(<span
            style="color:#010001">oXAxis</span>);<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:green">//poTable-&gt;AddColumn(oXAxis);<o:p></o:p></span></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;color:green;mso-fareast-language:DE-AT" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">vtkSmartPointer</span>&lt;<span
            style="color:#010001">vtkDoubleArray</span>&gt; <span
            style="color:#010001">oPositionlot</span> = <span
            style="color:#010001">vtkSmartPointer</span>&lt;<span
            style="color:#010001">vtkDoubleArray</span>&gt;::<span
            style="color:#010001">New</span>();<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">oPositionlot</span>-&gt;<span
            style="color:#010001">SetName</span>( <span
            style="color:#A31515">"Data0"</span> );<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poTable</span>-&gt;<span
            style="color:#010001">AddColumn</span>(<span
            style="color:#010001">oPositionlot</span>);<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poTable</span>-&gt;<span
            style="color:#010001">SetNumberOfRows</span>( 10 );<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poContextView</span>-&gt;<span
            style="color:#010001">GetRenderWindow</span>()-&gt;<span
            style="color:#010001">SetMultiSamples</span>(0);<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poTable</span>-&gt;<span
            style="color:#010001">GetColumn</span>(0)-&gt;<span
            style="color:#010001">SetName</span>(<span
            style="color:#A31515">"col1"</span>);<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:blue">for</span> ( <span style="color:#010001">size_t</span>
          <span style="color:#010001">nRow</span> = 0; <span
            style="color:#010001">nRow</span> &lt; 10; ++<span
            style="color:#010001">nRow</span> )<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; {<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poTable</span>-&gt;<span
            style="color:#010001">SetValue</span>(<span
            style="color:#010001">nRow</span>, 0, 1);<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; }<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">vtkPlot</span> * <span
            style="color:#010001">poPlot</span> = <span
            style="color:#010001">poChart</span>-&gt;<span
            style="color:#010001">AddPlot</span>(<span
            style="color:#010001">vtkChart</span>::<span
            style="color:#010001">LINE</span>);<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poPlot</span>-&gt;<span
            style="color:#010001">SetInputData</span>(<span
            style="color:#010001">poTable</span>, 0, 0);<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:green">//poPlot-&gt;SetInput(m_poTable, 0,
            nColumn);<o:p></o:p></span></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poPlot</span>-&gt;<span
            style="color:#010001">SetColor</span>( 1, 0, 0, 1 );<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poPlot</span>-&gt;<span
            style="color:#010001">SetWidth</span>( 1 );<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poPlot</span>-&gt;<span
            style="color:#010001">GetPen</span>()-&gt;<span
            style="color:#010001">SetLineType</span>(1);<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poContextView</span>-&gt;<span
            style="color:#010001">GetRenderer</span>()-&gt;<span
            style="color:#010001">Render</span>();<o:p></o:p></span></p>
      <p class="MsoNormal" style="text-autospace:none"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp;&nbsp; <span
            style="color:#010001">poContextView</span>-&gt;<span
            style="color:#010001">GetInteractor</span>()-&gt;<span
            style="color:#010001">Initialize</span>();<o:p></o:p></span></p>
      <p class="MsoNormal"><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT" lang="EN-GB">&nbsp;&nbsp;&nbsp; </span><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;color:#010001;mso-fareast-language:DE-AT">poContextView</span><span
          style="font-size:10.0pt;font-family:&quot;Courier
          New&quot;;mso-fareast-language:DE-AT">-&gt;<span
            style="color:#010001">GetInteractor</span>()-&gt;<span
            style="color:#010001">Start</span>();</span></p>
    </blockquote>
    <br>
  </body>
</html>