# X axis ticks are different when using both scatter and line as plot type in plotly grid layout

**URL:** <https://community.plotly.com/t/x-axis-ticks-are-different-when-using-both-scatter-and-line-as-plot-type-in-plotly-grid-layout/74279>\
**Category:** plotly.js\
**Created:** [April 10, 2023, 6:18am UTC](https://community.plotly.com/t/x-axis-ticks-are-different-when-using-both-scatter-and-line-as-plot-type-in-plotly-grid-layout/74279 "2023-04-10T06:18:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![psbhardwaj09](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/psbhardwaj09/32/23620_2.png) [@psbhardwaj09](https://community.plotly.com/u/psbhardwaj09)\
**Post date:** [April 10, 2023, 6:18am UTC](https://community.plotly.com/t/x-axis-ticks-are-different-when-using-both-scatter-and-line-as-plot-type-in-plotly-grid-layout/74279/1 "2023-04-10T06:18:09Z")

</div>

Hi, We areusing plotly react to render graph. We have requirement where user can update plot type line, scatter and scatter+line in grid and same x axis. When we are same plot type i.e scatter or line for all plots in grid, then x axis looks fine. But when we have different plot type e.g scatter for one and line for others then a axis looks different for them.  
below is screenshot for same:  
 ![plotly scatter+line](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/6/a/6a5b9dac9e2c96e0d65852bbca4a7718a0242f11.png)

Is there any way to restrict a-axis tick changes when updating plot type??
