I'm trying to plot multiple categories on the same plot using add_trace(). Ideally, I would want the different traces to have a slight offset so that the markers don't overlap. I'm unable to figure how to achieve it.
Here is an illustrative code, and my current result. The add_trace() doesn't seem to have an argument for an offset.
import plotly.graph_objects as go
fig2 = go.Figure()
x_data = ['10 days', '20 days', '30 days']
y_data1 = [0.4, 0.7, 0.9]
y_err_data1 = [0.025, 0.03, 0.05]
y_data2 = [0.6, 0.65, 0.7]
y_err_data2 = [0.05, 0.03, 0.01]
fig2.add_trace(go.Scatter(x=x_data,
y=y_data1,
error_y = dict(type='data', symmetric=True, array=y_err_data1, visible=True),
mode = 'markers'))
fig2.add_trace(go.Scatter(x=x_data,
y=y_data2,
error_y = dict(type='data', symmetric=True, array=y_err_data2, visible=True),
mode = 'markers'))
fig2.show()


