# User question - Integrate, then plot over time?

**URL:** https://discourse.paraview.org/t/user-question-integrate-then-plot-over-time/3684
**Category:** ParaView Support
**Created:** [February 27, 2020, 5:03pm UTC](https://discourse.paraview.org/t/user-question-integrate-then-plot-over-time/3684 "2020-02-27T17:03:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [February 27, 2020, 5:03pm UTC](https://discourse.paraview.org/t/user-question-integrate-then-plot-over-time/3684/1 "2020-02-27T17:03:18Z")

</div>

From one of my users:

Basic question, but I have an electric field line-out over which I would like to integrate (to get voltage between the two points) and then I would like to plot this over time to obtain the potential between the two points as a function of time. How can I do this?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [February 27, 2020, 9:09pm UTC](https://discourse.paraview.org/t/user-question-integrate-then-plot-over-time/3684/2 "2020-02-27T21:09:51Z")

</div>

Alan,

Add a **Line Source** , place the end points as desired, and set the **Resolution** property to something reasonable. Then, resample the data from the dataset to the **Resample with Data Set** filter. Set the “Source Data Arrays” to the dataset and the “Destination Mesh” to the line source.

Next, add an **Integrate Variables** filter to the **Resample with Data Set**. To that, add a **Plot Data Over Time** filter. That should do it.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [February 27, 2020, 9:22pm UTC](https://discourse.paraview.org/t/user-question-integrate-then-plot-over-time/3684/3 "2020-02-27T21:22:22Z")

</div>

Oh, of course. I missed the resample with dataset filter. Thanks.
