I think by default it will plot a line for each column in the table. It will use the cell value as the Y value, and the row index as the X value. To change the behavior, you have to change two representation properties:<br>
<br>
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<p style="margin: 0px; text-indent: 0px;"><br></p>
<p style="margin: 0px; text-indent: 0px;"> rep.UseIndexForXAxis = 0</p><p style="margin: 0px; text-indent: 0px;"> rep.XArrayName = 'foo'</p><br>This will plot all all the columns, except use the "foo" column as the X values. That means the line for the "foo" column is still displayed, and it will be a diagonal line.<br>
<br>I just looked, and Paraview has one cheat hard coded- if there is a column named "Time" or "arc_length" then it will be used automatically for the X axis.<br><br>Pat<br><br><div class="gmail_quote">
On Mon, Nov 29, 2010 at 4:11 PM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks for the idea. I was trying to figure out the flow from reading the data into displaying the data hoping to reveal some sort of default or something. I was going to generate some fake CSV data and see how that reader does things hoping the CSV reader takes the first column as the x-axis.<div class="im">
<br>
___________________________________________________________<br>
Mike Jackson <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software Dayton, Ohio<br>
<br>
<br>
<br></div><div><div></div><div class="h5">
On Nov 29, 2010, at 4:08 PM, pat marion wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Mike,<br>
<br>
I'm not up to speed with the current chart api so I can't answer your question... but maybe you could try doing it in the gui with python trace enabled, then translate the generated python code into c++ for your plugin? Customizing the chart should be a matter of setting properties on the representation and view, the data object itself doesn't have much say.<br>
<br>
Pat<br>
<br>
On Mon, Nov 29, 2010 at 1:41 PM, Michael Jackson <<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>> wrote:<br>
I have some XY data that I would like to plot in ParaView. I currently have a plugin that reads the data from our HDF5 file and into vtkTable objects. Along the lines of a "Line Chart 101" question how do I programmatically set the x-axis and y-axis columns?<br>
<br>
Thanks<br>
___________________________________________________________<br>
Mike Jackson <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software Dayton, Ohio<br>
<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</blockquote>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br>