I run into an issue of traversing my data multiple times in order to place it into the table. I would need to run through each line of each statistic just to figure out how many columns are needed. Then do it all again in order to fill the table. Where as if I could use vtkPolyLine, I only need to run through everything once. <br>
<br>Also, the stats I am reading in may not have the same Xs. For instance,<br><br>Stat1:Line1 may be as follow:<br>(X,Y) - (1,5),(2,10),(3,15)<br>Stat1:Line2 may be as follows<br>(X,Y) - (1,2),(5,10),(10,1)<br>Stat2:Line1 may be as follows<br>
(X,Y) - (1,2),(3,10),(5,1),(10,1)<br><br>so when I put it into the table I get Xs as 1,2,3,5,10. Then line one will have 5,10 with Y values of 0 and line 2 will have 2,3 with Y values of 0. So when plotted, line two will show (2,0) instead of (2,4).<br>
<br>Is there a better way to construct my table where I could avoid these issues?<br><br>Thanks,<br>Brian Panneton<br><br><div class="gmail_quote">On Mon, Mar 28, 2011 at 10:59 AM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</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;">I am not sure why you'd want to use a vtkPolyData. In fact, what<br>
you're doing with vtkTable seems very reasonable to me.<br>
<br>
Utkarsh<br>
<div><div></div><div class="h5"><br>
On Mon, Mar 28, 2011 at 10:37 AM, Brian Panneton<br>
<<a href="mailto:brian.panneton@gmail.com">brian.panneton@gmail.com</a>> wrote:<br>
> I am making a reader that will be reading in a bunch of X Y statistics. At<br>
> first I was reading them into a vtkTable which then I could run the 'Plot<br>
> Data' filter and get a 2D line chart. I was wondering if there was a better<br>
> way to do this. I want to try to use something like vtkPolyData, but I can't<br>
> seem to figure out if there is a way to include details about the<br>
> statistics, such as its title, the name of each line or other string data.<br>
><br>
> A quick example would be if I wanted to plot 2 statistics (A and B). A has 3<br>
> lines and B has 2 lines. I need some way to differentiate which statistic<br>
> and which line each of the plotted lines are.<br>
><br>
> In the vtkTable, I made a column for X, and then a column for each stat/line<br>
> pair (X,A1,A2,A3,B1,B2), but I feel like there is a better way to do this.<br>
><br>
> Thanks,<br>
> Brian Panneton<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <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:<br>
> <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>
><br>
</blockquote></div><br>