# Plotly - Scatter plot - remove data padding

**URL:** <https://community.plotly.com/t/plotly-scatter-plot-remove-data-padding/61744>\
**Category:** plotly.js\
**Tags:** question\
**Created:** [March 8, 2022, 4:19pm UTC](https://community.plotly.com/t/plotly-scatter-plot-remove-data-padding/61744 "2022-03-08T16:19:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChainReaction](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@ChainReaction](https://community.plotly.com/u/ChainReaction)\
**Post date:** [March 8, 2022, 4:19pm UTC](https://community.plotly.com/t/plotly-scatter-plot-remove-data-padding/61744/1 "2022-03-08T16:19:50Z")

</div>

Hey

I’d like to remove the buffer/padding effect which is added when I add a scatter trace which contains data right at the edge of my x-axis. When I remove the point near the edge (which I dont want to do…), I dont get the buffer effect - the line traces start right on the edge, but I cant find which setting controls this.

Can this be deactivated via settings? Thanks for the help!

![padding](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/3/d/3d7d86a1b933192c14658bca4b24f3c077b267e3.png)  
 ![padding-no](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/9/b/9bb1b61ad9b86addc4d7f9f3d4cd6cd329c258f4.png)

---

<div class="post-metadata">

**Author:** ![ChainReaction](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@ChainReaction](https://community.plotly.com/u/ChainReaction)\
**Post date:** [March 9, 2022, 2:41pm UTC](https://community.plotly.com/t/plotly-scatter-plot-remove-data-padding/61744/2 "2022-03-09T14:41:31Z")

</div>

To answer my own question:

setting layout.xaxis.range to a fixed range fixes this.
