<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:"Courier
New";color:#010001;mso-fareast-language:DE-AT"
lang="EN-GB">vtkContextView</span><span
style="font-size:10.0pt;font-family:"Courier
New";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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poContextView</span>-><span
style="color:#010001">GetRenderer</span>()-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poChart</span>-><span
style="color:#010001">GetAxis</span>(1)-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poChart</span>-><span
style="color:#010001">GetAxis</span>(0)-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poChart</span>-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poContextView</span>-><span
style="color:#010001">GetScene</span>()-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">vtkSmartPointer</span><<span
style="color:#010001">vtkDoubleArray</span>> <span
style="color:#010001">oXAxis</span> = <span
style="color:#010001">vtkSmartPointer</span><<span
style="color:#010001">vtkDoubleArray</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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">oXAxis</span>-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poTable</span>-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:green">//poTable->AddColumn(oXAxis);<o:p></o:p></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";color:green;mso-fareast-language:DE-AT" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">vtkSmartPointer</span><<span
style="color:#010001">vtkDoubleArray</span>> <span
style="color:#010001">oPositionlot</span> = <span
style="color:#010001">vtkSmartPointer</span><<span
style="color:#010001">vtkDoubleArray</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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">oPositionlot</span>-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poTable</span>-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poTable</span>-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poContextView</span>-><span
style="color:#010001">GetRenderWindow</span>()-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poTable</span>-><span
style="color:#010001">GetColumn</span>(0)-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <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> < 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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poTable</span>-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">vtkPlot</span> * <span
style="color:#010001">poPlot</span> = <span
style="color:#010001">poChart</span>-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poPlot</span>-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:green">//poPlot->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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poPlot</span>-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poPlot</span>-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poPlot</span>-><span
style="color:#010001">GetPen</span>()-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poContextView</span>-><span
style="color:#010001">GetRenderer</span>()-><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:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> <span
style="color:#010001">poContextView</span>-><span
style="color:#010001">GetInteractor</span>()-><span
style="color:#010001">Initialize</span>();<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT" lang="EN-GB"> </span><span
style="font-size:10.0pt;font-family:"Courier
New";color:#010001;mso-fareast-language:DE-AT">poContextView</span><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE-AT">-><span
style="color:#010001">GetInteractor</span>()-><span
style="color:#010001">Start</span>();</span></p>
</blockquote>
<br>
</body>
</html>