# Plot generic array over time

**URL:** https://discourse.paraview.org/t/plot-generic-array-over-time/11542
**Category:** ParaView Support
**Tags:** python, vtk
**Created:** [March 1, 2023, 9:15am UTC](https://discourse.paraview.org/t/plot-generic-array-over-time/11542 "2023-03-01T09:15:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![abon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/45deac/32.png) [@abon](https://discourse.paraview.org/u/abon)
#### Post date: [March 1, 2023, 9:15am UTC](https://discourse.paraview.org/t/plot-generic-array-over-time/11542/1 "2023-03-01T09:15:22Z")

</div>

Hello,  
I am a new user in using Paraview, I want to know how is it possible to plot over time of a generic array. Let me explain: I have been filtering data from a result provided by flow3D via python and I would like to plot this data against the raw one. Do you know if it is possible to plot over time of this derived data?

I report a simple example of the data I would like to plot:

```python
from paraview.simple import *
import numpy as np
CellSize = GetActiveSource()
raw_data_handle = servermanager.Fetch(CellSize)
raw_data= np.asarray(raw_data_handle.GetFieldData().GetArray('Control Volume Chamber 1: Fill Fraction'))
raw_time= np.asarray(raw_data_handle.GetFieldData().GetArray('Time'))

data=raw_data.tolist()
time=raw_time.tolist()

D=[]
for i in range (0,len(data)-1):
	D.append([time[i],(data[i+1]-data[i])/(time[i+1]-time[i])])

print (D)

```

Thanks for the help!
