I have a question about vtkChartXY and wonder if anybody would be willing to answer it?<br>Currently as in the example shown in <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot</a> the x-axis is defined as <br>
<br><font class="Apple-style-span" face="'courier new', monospace">table->SetValue(i, 0, i * inc);</font><div><br>while the datasets are defined as<br><br><font class="Apple-style-span" face="'courier new', monospace">table->SetValue(i, 1, cos(i * inc));<br>
table->SetValue(i, 2, sin(i * inc));</font><br><br>Which means that both plot 1 and plot 2 need to have exact same correspondence with x-axis with same number of rows and x-axis values. Lets say I have two sets of data, one in which x-axis starts from 1-10 and and another in which the x-axis starts from 5-20 and the number of points (rows) on first set is different compared with that of the second set. I clearly would need to have two tables in the current scheme of things. How can this be plotted using vtkChartXY or any other methods in VTK. Is there any chart which would support it? Are there any examples of the same? I am using version 5.9 of VTK. I really need some help on this!</div>
<div><br></div><div>Thank You</div><div><br>Amitesh<br><br><br><br><br></div>