Uncheck “Use Index For X Axis” and set X Array Name to Points_X
I get an error that says "[paraview ] vtkPlotPoints.cxx:560 ERR| vtkPlotLine (0xf320670): No X column is set (index 0).
I’ve seen this in both versions 6.0.1 and 6.1.0. The data I’m loading looks OK in the RenderView. Am I misusing this filter? The only workaround I’ve found is to insert a Python Calculator before the Plot Data filter that just copies points[:,0] to some other variable.
I have a different data file containing the same geometry as the attached one, but with slightly different data. I do not run into this problem when plotting that data. I was puzzled about the difference between the two datasets, so I saved them as ascii to make comparison easier. The only difference I could see was that the “bad” data (the one I attached in my original post) has the points given as:
If I change “numpy_array” to “Points,” I can plot without a problem.
So then I was curious about what led to “Points” vs. “numpy_array.” Turns out, I had two versions of the same script. For the “good” data, I wrote the points using something like:
points = vtk.vtkPoints()
for i in range(n):
points.InsertNextPoint(x[i], y[i], z[i])
poly = vtk.vtkPolyData()
poly.SetPoints(points)
...
For the “bad” data, I wrote the points using:
poly = dsa.WrapDataObject(vtk.vtkPolyData())
xyz = np.column_stack((x, y, z))
poly.SetPoints(xyz)