I am creating two subplots, both scatter. Then I add two annotations.
The problem is that subplot titles aren’t shown, unless I remove the code for adding the annotations.
I use:
fig = py.tools.make_subplots(rows = 1, cols= 2, subplot_titles = (“Original data”, “Log-transformed data”))
fig.append_trace(trace1, 1, 1)
fig.append_trace(trace2, 1, 2)fig[“layout”].update(annotations = [
go.Annotation(
x = 0.5,
y = -0.2,
showarrow=False,
text=“Text”,
xref=“paper”,
yref=“paper”
),
go.Annotation(
x = -0.05,
y = 0.15,
showarrow=False,
text=“Text”,
xref=“paper”,
yref=“paper”,
textangle=-90
)
])
Why is this happening? How can I fix it?
Thanks.