# Shared\_x axis with subplots, can't use suffix

**URL:** <https://community.plotly.com/t/shared-x-axis-with-subplots-cant-use-suffix/38334>\
**Category:** 📊 Plotly Python\
**Created:** [April 24, 2020, 8:54am UTC](https://community.plotly.com/t/shared-x-axis-with-subplots-cant-use-suffix/38334 "2020-04-24T08:54:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nora.pap](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@nora.pap](https://community.plotly.com/u/nora.pap)\
**Post date:** [April 24, 2020, 8:54am UTC](https://community.plotly.com/t/shared-x-axis-with-subplots-cant-use-suffix/38334/1 "2020-04-24T08:54:39Z")

</div>

Hello!

My problem is, that when I create multiple plots with subplots, and the x\_axis is shared, the suffix on x\_axis is not shown.

The code i use:

from plotly.subplots import make\_subplots  
import plotly.graph\_objects as go

fig = make\_subplots(rows=2, cols=1, shared\_xaxes=True, vertical\_spacing=0.05)

fig.add\_trace(  
go.Bar(x=[1, 2, 3], y=[4, 5, 6]),  
row=1, col=1  
)

fig.add\_trace(  
go.Bar(x=[2, 3, 4], y=[5, 6, 7]),  
row=2, col=1  
)

fig.update\_layout(height=600, width=800, title\_text=“Subplots”, xaxis=dict(ticksuffix="%"))  
fig.show()

Can anybody help, what I do wrong?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![nora.pap](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@nora.pap](https://community.plotly.com/u/nora.pap)\
**Post date:** [April 27, 2020, 11:41am UTC](https://community.plotly.com/t/shared-x-axis-with-subplots-cant-use-suffix/38334/2 "2020-04-27T11:41:05Z")

</div>

I found an answer somewhere else, so if somebody has the same issue:

```auto
import plotly.graph_objects as go
from plotly.subplots import make_subplots

fig = make_subplots(rows=2, cols=1, shared_xaxes=True, vertical_spacing=0.05)

fig.add_trace(
go.Bar(x=[1, 2, 3], y=[4, 5, 6]),
row=1, col=1
)

fig.add_trace(
go.Bar(x=[2, 3, 4], y=[5, 6, 7]),
row=2, col=1
)

fig.update_layout(height=600, width=800, title_text='Subplots')
fig.update_xaxes(dict(ticksuffix="%"))
fig.show()

```
