# Generate Action Potential Graph with Paraview and Plotly in Trame

**URL:** https://discourse.paraview.org/t/generate-action-potential-graph-with-paraview-and-plotly-in-trame/15077
**Category:** Web Support
**Tags:** python
**Created:** [July 18, 2024, 12:34pm UTC](https://discourse.paraview.org/t/generate-action-potential-graph-with-paraview-and-plotly-in-trame/15077 "2024-07-18T12:34:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Rafaelrr5](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rafaelrr5/32/14850_2.png) [@Rafaelrr5](https://discourse.paraview.org/u/Rafaelrr5)
#### Post date: [July 18, 2024, 12:34pm UTC](https://discourse.paraview.org/t/generate-action-potential-graph-with-paraview-and-plotly-in-trame/15077/1 "2024-07-18T12:34:11Z")

</div>

I’m trying to generate a graph view in my trame app using paraview functions, but I’m kinda lost.  
My code is below; I have the function to select a cell to get it’s action potential and the part that should show it on screen. Some things are kinda messed up because I’ve tested other functions that now I know that are deprecated and I don’t really know if I should discard the other things I’ve done or I can use them on another way. Thanks in advance, I would really appreciate some help with this.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/e/eb1bfdc4f1069e96ac1186d8a4b41bb1f507e85e.png)  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/5/50beed4eee147e0ee4584ac09188ed20a935ded7.png)

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [August 6, 2024, 4:28pm UTC](https://discourse.paraview.org/t/generate-action-potential-graph-with-paraview-and-plotly-in-trame/15077/2 "2024-08-06T16:28:35Z")

</div>

Duplicate of [PlotSelectionOverTime in trame · Kitware/trame · Discussion #430 · GitHub](https://github.com/Kitware/trame/discussions/430)
