# How can I plot a result over time on a moving point

**URL:** https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894
**Category:** ParaView Support
**Created:** [August 31, 2021, 7:57am UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894 "2021-08-31T07:57:56Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![babouletatou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@babouletatou](https://discourse.paraview.org/u/babouletatou)
#### Post date: [August 31, 2021, 7:57am UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/1 "2021-08-31T07:57:56Z")

</div>

Hi,  
My problem is this one:  
I have a moving geometry and an adaptative mesh. I would like to measure the pressure over time on a certain point: so I use **Probe Location** , then I select the Point I just created and then **plot selection over time**. But here is the thing, _I don’t know how to make my point moving with the same moving law of my geometry in order to measure the pressure at the same place of my volume at each time step._  
Is it possible?  
Thank’s for your help

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 31, 2021, 8:02am UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/2 "2021-08-31T08:02:47Z")

</div>

If the point in question is part of your geometry:

- Edit → FindData → SelectYourPoint by ID
- ExtractSelection

---

<div class="post-metadata">

### Author: ![babouletatou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@babouletatou](https://discourse.paraview.org/u/babouletatou)
#### Post date: [August 31, 2021, 8:05am UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/3 "2021-08-31T08:05:53Z")

</div>

My point is created with **Probe Location** , the point is not part of the simulation.  
Does it work all the same?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 31, 2021, 8:08am UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/4 "2021-08-31T08:08:27Z")

</div>

No, it doesn’t. Your simulation is moving, ParaView cannot “track” it for you. Do you know how your point is supposed to be moved ?

---

<div class="post-metadata">

### Author: ![babouletatou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@babouletatou](https://discourse.paraview.org/u/babouletatou)
#### Post date: [August 31, 2021, 8:09am UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/5 "2021-08-31T08:09:26Z")

</div>

Yes indeed, I have the moving law of my geometry and I would like to apply it to the point aswell

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 31, 2021, 8:11am UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/6 "2021-08-31T08:11:41Z")

</div>

Not trivial but using the animation view you can make the point coordinate evolve over time.

---

<div class="post-metadata">

### Author: ![babouletatou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@babouletatou](https://discourse.paraview.org/u/babouletatou)
#### Post date: [August 31, 2021, 8:25am UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/7 "2021-08-31T08:25:57Z")

</div>

Thank you very much I’m going to try it!

---

<div class="post-metadata">

### Author: ![babouletatou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@babouletatou](https://discourse.paraview.org/u/babouletatou)
#### Post date: [August 31, 2021, 8:39am UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/8 "2021-08-31T08:39:27Z")

</div>

Awesome, thank you it seems to work, the fact is just I have a huge amount of values, do you know if there is a way to automate the filling of the table?  
But thank you anyway! 🙂

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 31, 2021, 8:44am UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/9 "2021-08-31T08:44:57Z")

</div>

> [@babouletatou](#):
>
> , do you know if there is a way to automate the filling of the table?

Sadly not.

If you have some data on disk, you should better read the positions with ParaView and use RessampleWithDataSet instead of probe point.

---

<div class="post-metadata">

### Author: ![babouletatou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@babouletatou](https://discourse.paraview.org/u/babouletatou)
#### Post date: [September 1, 2021, 9:50am UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/10 "2021-09-01T09:50:00Z")

</div>

> [@mwestphal](#):
>
> If you have some data on disk, you should better read the positions with ParaView and use RessampleWithDataSet instead of probe point

Sorry but I don’t understand how to do it, how can I read the positions with Paraview for example?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 1, 2021, 9:50am UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/11 "2021-09-01T09:50:38Z")

</div>

File → Open

---

<div class="post-metadata">

### Author: ![babouletatou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@babouletatou](https://discourse.paraview.org/u/babouletatou)
#### Post date: [September 1, 2021, 10:16am UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/12 "2021-09-01T10:16:07Z")

</div>

Yes I understand but I only have a moving \_law.txt and my group of VTU files, I don’t understand what I should do with the resamplewithdataset filter and my moving law to follow my result on a specific point

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 1, 2021, 11:28am UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/13 "2021-09-01T11:28:10Z")

</div>

please share moving\_law.txt

---

<div class="post-metadata">

### Author: ![babouletatou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@babouletatou](https://discourse.paraview.org/u/babouletatou)
#### Post date: [September 1, 2021, 12:43pm UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/14 "2021-09-01T12:43:00Z")

</div>

Here it is  
[moving\_law.txt](https://discourse.paraview.org/uploads/short-url/8I78TTQhji7fTWYPqoMp63w5dN3.txt) (123.3 KB)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 1, 2021, 1:09pm UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/15 "2021-09-01T13:09:50Z")

</div>

So you need either to create your own reader providing this data as a temporal dataset or you need to preprocess it to make it compatible with paraview.

Both approach are fine and not that complexm the first one is simpler if you know python and use a ProgrammableSource in paraview.

---

<div class="post-metadata">

### Author: ![babouletatou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@babouletatou](https://discourse.paraview.org/u/babouletatou)
#### Post date: [September 1, 2021, 1:59pm UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/16 "2021-09-01T13:59:46Z")

</div>

Ok thank you, I’m not a programmer at all, but I’ll try, but I’m not sure to understand the aim of creating what you’re calling a “reader” whereas I have already the .txt file opened on paraview

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 1, 2021, 2:00pm UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/17 "2021-09-01T14:00:43Z")

</div>

Because the text reader in paraview will not provide a temporal dataset.

---

<div class="post-metadata">

### Author: ![babouletatou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@babouletatou](https://discourse.paraview.org/u/babouletatou)
#### Post date: [September 1, 2021, 2:39pm UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/18 "2021-09-01T14:39:28Z")

</div>

Ok, thank you, last question: is the point I have to move with ProgrammableSource is still a point created by Probe Location?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 1, 2021, 2:40pm UTC](https://discourse.paraview.org/t/how-can-i-plot-a-result-over-time-on-a-moving-point/7894/19 "2021-09-01T14:40:59Z")

</div>

No, the ProgrammableSource will read the file from disk and create the points. See here:  
[https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html#recipes-for-programmable-source](https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html#recipes-for-programmable-source)
