Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

shared_xaxis with plotly, but can I still display the axis on each plot?

if you share the x_axis between 2 plots, they will get aligned, as expected.

however, the axis is displayed only once, on a single plot and not on both anymore.

Is it possible to display the axis on each plot?

like image 238
Thomas Avatar asked Dec 19 '25 03:12

Thomas


1 Answers

If you want separate tick marks on each subplot after using shared_xaxes=True

Simply do the following to re-enable them one-by-one manually:

figure.update_layout(xaxis_showticklabels=True)
figure.update_layout(xaxis2_showticklabels=True)
...
like image 77
AlanSTACK Avatar answered Dec 21 '25 15:12

AlanSTACK