# How to listen events on modifying a shape

**URL:** https://community.plotly.com/t/how-to-listen-events-on-modifying-a-shape/41977
**Category:** 📊 Plotly Python
**Created:** [July 3, 2020, 8:13pm UTC](https://community.plotly.com/t/how-to-listen-events-on-modifying-a-shape/41977 "2020-07-03T20:13:42Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![sweetdream](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@sweetdream](https://community.plotly.com/u/sweetdream)
#### Post date: [July 7, 2020, 8:16am UTC](https://community.plotly.com/t/how-to-listen-events-on-modifying-a-shape/41977/3 "2020-07-07T08:16:24Z")

</div>

By the way I’ve just noticed from :

> **[Displaying](https://plotly.com/python/renderers/)**
>
> Detailed examples of Displaying Figures including changing color, size, log axes, and more in Python.

It says :  
`It is important to note that `FigureWidget`does not use the renderers framework discussed above, so you should not use the`show()`figure method or the`plotly.io.show`function on`FigureWidget` objects.`

So, you all functions, on\_\* (such as on\_change) which are FigureWidget specific will not work is you use the “show” function.

other useful ref:

> [@How to use 'scatter.on\_change' to grab event?](https://community.plotly.com/t/how-to-use-scatter-on-change-to-grab-event/18103):
>
> Hello. I’d like to find some examples for “on\_change” function for “Scatter” plot. Just need to send some event when plot is changed (eg. series are hide) to trigger some function which will update another plot (eg. resolve average). I tried to use it similarly to what I’ve found for ‘scatter.on\_click’ but dunno how to get it work. However, this example https://plot.ly/python/click-events/ as well doesn’t work for my case, because I use ‘iplot’. I hope ‘on\_change’ don’t worry about ‘iplot’. A…

---

_[View the full topic](https://community.plotly.com/t/how-to-listen-events-on-modifying-a-shape/41977)._
