# Subplots with Shared Axes

**URL:** <https://community.plotly.com/t/subplots-with-shared-axes/13988>\
**Category:** plotly.js\
**Created:** [September 26, 2018, 4:48pm UTC](https://community.plotly.com/t/subplots-with-shared-axes/13988 "2018-09-26T16:48:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zolotoy](https://avatars.discourse-cdn.com/v4/letter/z/6bbea6/32.png) [@Zolotoy](https://community.plotly.com/u/Zolotoy)\
**Post date:** [September 26, 2018, 4:48pm UTC](https://community.plotly.com/t/subplots-with-shared-axes/13988/1 "2018-09-26T16:48:35Z")

</div>

Here is how it looks:  
 ![1](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/6/6fb31b557685993217c8480f28e7b63563b3cbf1.png)

Here is my configuration:  
var Predicted= {  
type: “scatter”,  
mode: “lines”,  
name: ‘Predicted’,  
xaxis; ‘x’,  
yaxis: ‘y3’,  
x: unpackData(data[0].Values, ‘x’),  
y: unpackData(data[0].Values, ‘y’),  
};  
var Actual= {  
type: “scatter”,  
mode: “lines”,  
name: ‘Actual’,  
x: unpackData(data[1].Values, ‘x’),  
y: unpackData(data[1].Values, ‘y’),  
};

var layout = {  
xaxis: {  
type: ‘date’,  
title: ‘Time’,  
domain: [0, 1.0]  
},  
yaxis: {  
title: ‘Values’,  
domain: [0, 0.5]  
},  
yaxis3: { domain: [0.55, 1] },  
autoresize: true,  
showlegend: true,  
legend: { “orientation”: “h” },  
margin: {  
l: 60,  
r: 5,  
b: 0,  
t: 50  
},  
title: data[0].Values[0].name,  
};  
How can I move x axis down?

---

<div class="post-metadata">

**Author:** ![Zolotoy](https://avatars.discourse-cdn.com/v4/letter/z/6bbea6/32.png) [@Zolotoy](https://community.plotly.com/u/Zolotoy)\
**Post date:** [September 26, 2018, 5:43pm UTC](https://community.plotly.com/t/subplots-with-shared-axes/13988/2 "2018-09-26T17:43:40Z")

</div>

I am running plotly locally and it wasn’t the latest version. I got latest and now ![1](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/f/f6d28c1ee78752e8ad08d673322395eda797da30.png) my chart looks like this:

---

<div class="post-metadata">

**Author:** ![Zolotoy](https://avatars.discourse-cdn.com/v4/letter/z/6bbea6/32.png) [@Zolotoy](https://community.plotly.com/u/Zolotoy)\
**Post date:** [September 26, 2018, 5:47pm UTC](https://community.plotly.com/t/subplots-with-shared-axes/13988/3 "2018-09-26T17:47:18Z")

</div>

I am also trying to add ticks to x axis, that is not working either and looks like this:  
 ![1](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/3/343a579418fe18114a3ed2ffd4678797629cb3da.png)
