# time step aanotation using python annotation

**URL:** https://discourse.paraview.org/t/time-step-aanotation-using-python-annotation/12607
**Category:** ParaView Support
**Created:** [July 31, 2023, 11:56am UTC](https://discourse.paraview.org/t/time-step-aanotation-using-python-annotation/12607 "2023-07-31T11:56:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ali1990dashti](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ali1990dashti/32/12099_2.png) [@Ali1990dashti](https://discourse.paraview.org/u/Ali1990dashti)
#### Post date: [July 31, 2023, 11:56am UTC](https://discourse.paraview.org/t/time-step-aanotation-using-python-annotation/12607/1 "2023-07-31T11:56:35Z")

</div>

Dear community,

I am importing several .vtu files into paraview. Each .tu file has a variable names _reservoirfluid::Time_  
which represents the time. Then, I want to annotate the value of time steps in my plot. I checked [this page](https://docs.paraview.org/en/latest/ReferenceManual/annotations.html#) but still could not solve my issu. I tried adding Python Annotation filter and used _reservoirfluid::Time_ as my expression but it raised to an error.  
I have uploaded some snapshots of my data. I very much appreciate your help.  
[second\_TH\_0.vtu](https://discourse.paraview.org/uploads/short-url/oQnUWayuAhLJFX2yJppmvW5SBEc.vtu) (1.2 MB)  
[second\_TH\_1.vtu](https://discourse.paraview.org/uploads/short-url/givZWHqClLQMzZgco5WvTKWcsxD.vtu) (2.3 MB)  
[second\_TH\_2.vtu](https://discourse.paraview.org/uploads/short-url/6VnvEZReZwOj0KXeGmwlcPSMcJe.vtu) (2.4 MB)  
[second\_TH\_3.vtu](https://discourse.paraview.org/uploads/short-url/cAUpawh0rYU7Dt59BWhN5wVsYMI.vtu) (2.4 MB)  
[second\_TH\_4.vtu](https://discourse.paraview.org/uploads/short-url/qRYD2WTOb29EGDmSJcfKnnrC3Hs.vtu) (3.1 MB)

---

<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: [July 31, 2023, 12:55pm UTC](https://discourse.paraview.org/t/time-step-aanotation-using-python-annotation/12607/2 "2023-07-31T12:55:19Z")

</div>

FYI this is not the right way to specify a time step value in ParaView, you want to use a .series file: [2. Loading Data — ParaView Documentation 5.11.0 documentation](https://docs.paraview.org/en/latest/UsersGuide/dataIngestion.html#handling-temporal-file-series)

But, you should be able to annotate using your data like any other data, it seems to work perfectly here:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/9/91344c99aa5d8b27c8932ad9d0fa96d839e607a0.png)

Use “AnnotateAttributesData” for that.

---

<div class="post-metadata">

### Author: ![Ali1990dashti](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ali1990dashti/32/12099_2.png) [@Ali1990dashti](https://discourse.paraview.org/u/Ali1990dashti)
#### Post date: [July 31, 2023, 1:08pm UTC](https://discourse.paraview.org/t/time-step-aanotation-using-python-annotation/12607/3 "2023-07-31T13:08:58Z")

</div>

Dear @mwestphal , thanks for your hint. I tried the AnnotateAttributeData and used reservoirfluid::Time as the Input Array but again it raises an error and only (error) pops up in the 3D plot. I have dropped the view here:

 ![para](https://discourse.paraview.org/uploads/default/original/2X/e/e20d9cb29ed84da355d4a65ca5cfb433d91932e3.jpeg)

---

<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: [July 31, 2023, 1:10pm UTC](https://discourse.paraview.org/t/time-step-aanotation-using-python-annotation/12607/4 "2023-07-31T13:10:50Z")

</div>

You are using ParaView 5.8.1, please update paraview

---

<div class="post-metadata">

### Author: ![Ali1990dashti](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ali1990dashti/32/12099_2.png) [@Ali1990dashti](https://discourse.paraview.org/u/Ali1990dashti)
#### Post date: [July 31, 2023, 1:21pm UTC](https://discourse.paraview.org/t/time-step-aanotation-using-python-annotation/12607/5 "2023-07-31T13:21:08Z")

</div>

thanks a lot. It worked with the new version.
