# Subplot with shared x-axis and range slider

**URL:** <https://community.plotly.com/t/subplot-with-shared-x-axis-and-range-slider/3148>\
**Category:** 📊 Plotly Python\
**Created:** [January 20, 2017, 11:06am UTC](https://community.plotly.com/t/subplot-with-shared-x-axis-and-range-slider/3148 "2017-01-20T11:06:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julian](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Julian](https://community.plotly.com/u/Julian)\
**Post date:** [January 20, 2017, 11:06am UTC](https://community.plotly.com/t/subplot-with-shared-x-axis-and-range-slider/3148/1 "2017-01-20T11:06:14Z")

</div>

Hi,

I was wondering if it’s possible to create a plot with 3 subplots arranged vertically ([https://plot.ly/python/subplots/](https://plot.ly/python/subplots/)) that have a shared x-axis, along with a range slider that controls the x-axis ([https://plot.ly/python/range-slider/](https://plot.ly/python/range-slider/))?

Any help is appreciated.

Thanks,  
Julian

---

<div class="post-metadata">

**Author:** ![vks2004](https://avatars.discourse-cdn.com/v4/letter/v/65b543/32.png) [@vks2004](https://community.plotly.com/u/vks2004)\
**Post date:** [March 1, 2020, 8:46am UTC](https://community.plotly.com/t/subplot-with-shared-x-axis-and-range-slider/3148/2 "2020-03-01T08:46:32Z")

</div>

Hi,

1. If 3 subplots are vertically arranged, they can share the X-axis like this -

2. After using a common X-axis, subplots can be added to the figure.

3. Then range slider can be enabled for the bottom subplot like this -

This range slider will be common and shared by all the subplots.

Cheers
