Hi,
I’m trying to add a top X-Axis to a figure and I can’t seem to find a way to make it display properly through the figure settings. In my layout I have something like this:
layout = go.Layout(
xaxis=dict(
tickmode='array',
tickvals=idx_sections * freq_adjust,
ticktext=section_names,
),
xaxis2=XAxis(
overlaying='x',
side='top',
tickmode='array',
tickvals=idx_sections * freq_adjust,
ticktext=timestamps,
title="Timestamps",
showgrid=False
)
But it only displays properly if I then add a go.Scatter object that uses xaxis='x2'
for example. Even adding a figure with empty x/y values doesn’t display properly. Is it possible to directly set the range and tick locations/values before showing the figure? Any help appreciated.