I am trying to add the same titles on the x-axes
and y-axes
to four gantt charts that are displayed as subplots. I found online figs.update_layout()
however, this only presents the title on the first chart, not all. I have found a few answers with R however any help with python would be great
figs = make_subplots(
rows=2, cols=2,
shared_xaxes=False,
subplot_titles =('Plot 1', 'PLot 2', 'PLot 3', 'Plot 4')
)
figs.update_layout(
title="Plot Title",
xaxis_title="Miliseconds",
yaxis_title="Services",
)
for trace in fig_operable.data:
figs.add_trace(trace, row=1, col=1)
for trace in fig_dynamic.data:
figs.add_trace(trace, row=2, col=1)
for trace in fig_early.data:
figs.add_trace(trace, row=1, col=2)
for trace in fig_hmi.data:
figs.add_trace(trace, row=2, col=2)
figs.update_layout(showlegend=False, title_text="Title of charts")
figs.show()