# Adding Python annotation to line chart plot

**URL:** https://discourse.paraview.org/t/adding-python-annotation-to-line-chart-plot/4720
**Category:** ParaView Support
**Created:** [June 30, 2020, 5:19pm UTC](https://discourse.paraview.org/t/adding-python-annotation-to-line-chart-plot/4720 "2020-06-30T17:19:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ANON1](https://discourse.paraview.org/user_avatar/discourse.paraview.org/anon1/32/3919_2.png) [@ANON1](https://discourse.paraview.org/u/ANON1)
#### Post date: [June 30, 2020, 5:19pm UTC](https://discourse.paraview.org/t/adding-python-annotation-to-line-chart-plot/4720/1 "2020-06-30T17:19:08Z")

</div>

Hello,  
I am trying to add a dynamic title to my line chart plot which an mathematical expression involving time, example of title: “Velocity = 5_sin(4_t)”. The mathematical expression should be evaluated by Paraview. I tried to use Python Annotation but it seems that it doesn’t work with line chart.  
Is it possible to add a Python annotation to Line chart plot?  
I can find that the title offers only the variable `${TIME}` for time but cannot do arithmetic with it.

Thank you

---

<div class="post-metadata">

### Author: ![ANON1](https://discourse.paraview.org/user_avatar/discourse.paraview.org/anon1/32/3919_2.png) [@ANON1](https://discourse.paraview.org/u/ANON1)
#### Post date: [June 30, 2020, 9:55pm UTC](https://discourse.paraview.org/t/adding-python-annotation-to-line-chart-plot/4720/2 "2020-06-30T21:55:19Z")

</div>

As a workaround, I used the following:

- I added a render window above the line chart
- I changed its background color to white (to match the backgroud color of the line chart window
- I added a Python annotation filter to the render window, reduced its height to the height of the text.

That works fine for me. I hope there is a proper way to do that.

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [July 1, 2020, 11:33am UTC](https://discourse.paraview.org/t/adding-python-annotation-to-line-chart-plot/4720/3 "2020-07-01T11:33:50Z")

</div>

FYI, Python Annotation and other text sources will be supported in chart views starting with ParaView 5.9. The [changes](https://gitlab.kitware.com/paraview/paraview/-/merge_requests/4002) are available in nightly builds.

---

<div class="post-metadata">

### Author: ![ANON1](https://discourse.paraview.org/user_avatar/discourse.paraview.org/anon1/32/3919_2.png) [@ANON1](https://discourse.paraview.org/u/ANON1)
#### Post date: [July 1, 2020, 8:54pm UTC](https://discourse.paraview.org/t/adding-python-annotation-to-line-chart-plot/4720/4 "2020-07-01T20:54:35Z")

</div>

Thank you very much for the information.
