A quick question about plotting points (x, y, z, time)

Hello.

I am a beginner of Paraview.

I have a point data set which has spatial and temporal information.
I plotted all points without the time stamp.

I’d like to plot the time evolution of scatters.
I don’t know how to write the data set into vtk including time.

I am looking forward to any comments.

Thanks

Sungho Lee

You can write one file by timestep and name it like this :

file_0.ext
file_1.ext
file_2.ext
...

Then open the file series in ParaView.

1 Like

Thanks you so much

It works well :slight_smile:

Sungho

1 Like

Hello. In what format are you writing the time to your file?

you do not write the time.

I want to do something like this youtu.be/Asw4usQCqs0?t=183 - visualization of points in time. I loaded the points using the TablesToPoints filter, but I don’t know how to make the points appear in time. Do you know any way?

please share your data

EVENTS.csv (19.0 KB)

There is no easy way, you basically need to write your own programmable filter that will extract the data and timesteps and convert it to an actual temporal dataset.

Mathieu, maybe you have some example of a programmable filter with animation?

Here is one, this is not trivial though:
https://public.kitware.com/pipermail/paraview/2018-February/041970.html

Thank you!

Hi @logmclassrulit,

There would be a way to use an existing plugin.
PythonAlgorithmExamples
This plugin reads a CSV file as time series data if it contains a ‘time’ column.

But before that, you need to add the ‘time’ column to the EVENTS.csv using the trivial python script add_time_col.py (add_time_col.py (1.3 KB)). The run command is below:

python add_time_col.py

Then EVENTS_out.csv will be output.
EVENTS_out.csv (21.8 KB)

However, for your purposes, this plugin ‘PythonAlgorithmExamples’ could not be used as is, and the following changes were necessary:

  • Modified to read string arrays
  • Modified to read all points before the current time

The modified is as below.
PythonAlgorithmExamples.py (14.6 KB)

Now load this modified plugin into ParaView.
Tools > Make Plugins...
Then load it via the Load New ... button.

Next, EVENTS_out.csv is read by specifying the plugin reader Python-based CSV Reader. When loaded, the data is read into the Spread Sheet as a table, which is then converted to points using the Table To Point filter.

Finally, you may want to use the Python Annotation filter to display the time in the TIME column. Here, Expression is described as follows:
Expression: TIME.GetValue(len(points)-1)

1 Like

Wow, this is amazing and you are amazing, thank you very much :hugs: