pythonplotlyaxis-labels

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?


Solution

  • If you're using Plotly Express, there is no way to do this at the moment. If you're using the underlying make_subplots method, however, this is the default behaviour: https://plot.ly/python/subplots/