How to add a horizontal scrollbar to the X axis?
问题 I want to add a (horizontal) scrollbar to the X axis, because the number of points is large. How can I do it? trace0 = go.Scatter( x = x1_values, y = y1_values, name = "V1" ) data = [trace0] layout = dict(title = title, xaxis = dict(tickmode='linear', tickfont=dict(size=10)), yaxis = dict(title = "Title") ) fig = dict(data=data, layout=layout) iplot(fig) 回答1: Using plotly you can add a rangeslider using fig['layout']['xaxis']['rangeslider'] with functionality that exceeds that of a scrollbar: