# Change Y axis direction

**URL:** <https://community.plotly.com/t/change-y-axis-direction/38135>\
**Category:** 📊 Plotly Python\
**Created:** [April 21, 2020, 12:13pm UTC](https://community.plotly.com/t/change-y-axis-direction/38135 "2020-04-21T12:13:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arturgudiev](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/arturgudiev/32/10371_2.png) [@arturgudiev](https://community.plotly.com/u/arturgudiev)\
**Post date:** [April 21, 2020, 12:13pm UTC](https://community.plotly.com/t/change-y-axis-direction/38135/1 "2020-04-21T12:13:15Z")

</div>

I have a simple time series plot which is constructed like

```auto
  import plotly.graph_objects as go

  data = []
  for model in models:
        ...        
        data.append(go.Scatter(x=x, y=y, name=event_name))

  layout = dict(title='Events progress')
  fig = dict(data=data, layout=layout)
  fig = go.Figure(fig)
  fig.update_layout(autosize=False, width=1000, height=1000)
  fig.write_image(mypath);

```

 ![events_plot](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/3/3a727575ed330a09c4a5d524beb02d07978373a4.png)

But I need Y axis to grow down so that 0 point would be at left top corner. How can I perform it ?

---

<div class="post-metadata">

**Author:** ![arturgudiev](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/arturgudiev/32/10371_2.png) [@arturgudiev](https://community.plotly.com/u/arturgudiev)\
**Post date:** [April 21, 2020, 12:53pm UTC](https://community.plotly.com/t/change-y-axis-direction/38135/2 "2020-04-21T12:53:47Z")

</div>

Ok. Somebody helped me in stackoverflow.  
Just need this

```auto
fig.update_yaxes(autorange="reversed")

```

---

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [April 21, 2020, 1:39pm UTC](https://community.plotly.com/t/change-y-axis-direction/38135/3 "2020-04-21T13:39:19Z")

</div>

Hi @arturgudiev,  
Welcome to Plotly forum!  
To reverse the order on yaxis, you must perform this update:  
`fig.update_yaxes(autorange='reversed')`.
