paraview: plot data from csv file

江枫思渺然 提交于 2021-02-19 03:27:28

问题


I am trying to use paraview to plot a xy plot. The plot I want is just a linear relationship between x and y. So I import my data file (data.csv) into paraview. My data is shown below:

X Y
0 0
1 1
2 6
3 8
4 15

Then I set the delimiter to " ". After that I can see the data is sorted in x and y column. But I do not find a option to let paraview to plot the data. Any help? Thank you. Here is a screenshort of my interface:


回答1:


Add a Plot Data filter while you have data.csv selected and click Apply. a Line Chart View will open up, but it won't show anything. In the Properties panel, scroll down to the Series Parameters subsection. Click on the checkbox to the left of the variable "Y". To put "X" on the x axis, uncheck the Use Index for XAxis checkbutton and set the X Array Name to "X".



来源:https://stackoverflow.com/questions/54962479/paraview-plot-data-from-csv-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!