# Change the size of axes labels on a line chart

**URL:** <https://community.plotly.com/t/change-the-size-of-axes-labels-on-a-line-chart/51984>\
**Category:** 📊 Plotly Python\
**Created:** [April 13, 2021, 9:12pm UTC](https://community.plotly.com/t/change-the-size-of-axes-labels-on-a-line-chart/51984 "2021-04-13T21:12:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex3](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@alex3](https://community.plotly.com/u/alex3)\
**Post date:** [April 13, 2021, 9:12pm UTC](https://community.plotly.com/t/change-the-size-of-axes-labels-on-a-line-chart/51984/1 "2021-04-13T21:12:23Z")

</div>

Hi! I’m trying to change the sizes of the X axis label and Y axis label for my line chart. How can I do this? My current code for the layout is as follows:

# Edit the Layout:

fig.update\_layout(  
title\_text=f"Service Trend Analysis {Year}“,  
title\_x= 0.5,  
title\_font\_size=30,  
title\_font\_color=”#351C15",  
xaxis\_title= “Month”,  
yaxis\_title= ‘Services’,  
autosize=False, width=1200, height=700,  
showlegend=True)

fig.show()

Thank you!!
