# Python animated line

**URL:** https://community.plotly.com/t/python-animated-line/31032
**Category:** Dash Python
**Created:** [November 7, 2019, 8:07pm UTC](https://community.plotly.com/t/python-animated-line/31032 "2019-11-07T20:07:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![19lex82](https://avatars.discourse-cdn.com/v4/letter/1/d6d6ee/32.png) [@19lex82](https://community.plotly.com/u/19lex82)
#### Post date: [November 7, 2019, 8:07pm UTC](https://community.plotly.com/t/python-animated-line/31032/1 "2019-11-07T20:07:16Z")

</div>

Hi, i am new to plotly. i try to change the example code to animate a line plot

Code:

gapminder = px.data.gapminder().query(“country==‘Canada’”)  
fig = px.line(gapminder, x=“year”, y=“lifeExp”, animation\_frame=‘year’, title=‘Life expectancy in Canada’)  
fig.show()

but the plot don t show the line. Thanks for a short help!!!

Supplement: i am looking for a cumulative animation…
