I am trying to plot something using plotly go and my x axis labels are too long so plotly is cutting them off and they are not visible completely.
I am using the following code:
fig = go.Figure()
for i in df_int.columns[1:]:
fig.add_trace(go.Scatter(x=df_int['index'],y=df_int[i],mode='markers'
,cliponaxis=False,name=i,visible= 'legendonly'))
fig.show()
The length of each index that I am trying to visualize on x axis is very long upto 100 characters so it is getting trimmed. when I plot the same using matplotlib it is plotting correctly.
1)Is there a way I could resolve this and be able to visualize the labels completely?
2)Also is it possible to replace these labels with integers on x axis?
I am new to plotly so not sure how I can resolve this. Please help.
question from:
https://stackoverflow.com/questions/65840094/plotly-go-cutting-off-the-labels-on-x-axis 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…