2017-11-12 2 views
0

私は価格表をプロットします。 Y軸スケールは、価格帯全体で最小値と最大値に設定されています。価格表でYの範囲を自動的に調整する方法

enter image description here

Iの範囲を減少させる場合、私が最後の時間を表示する場合、例えば、Y軸はスケールしないと同一の範囲が与えられています。どのようにY軸が自動的に目に見える価格帯に拡大するようにすることができますか?

enter image description here

これは私のレイアウト

layout = go.Layout(
 
     title=title, 
 
     legend=dict(orientation="h"), 
 
     xaxis=dict(
 
      rangeselector=dict(
 
       buttons=list([ 
 
        dict(count=1, 
 
         label='1h', 
 
         step='hour', 
 
         stepmode='backward'), 
 
        dict(count=3, 
 
         label='3h', 
 
         step='hour', 
 
         stepmode='backward'), 
 
        dict(count=6, 
 
         label='6h', 
 
         step='hour', 
 
         stepmode='backward'), 
 
        dict(count=1, 
 
         label='1d', 
 
         step='day', 
 
         stepmode='backward'), 
 
        dict(count=3, 
 
         label='3d', 
 
         step='day', 
 
         stepmode='backward'), 
 
        dict(step='all') 
 
       ]) 
 
      ), 
 
      rangeslider=dict(), 
 
      type='date' 
 
     ), 
 
     yaxis=dict(
 
      title=y_axis_label, 
 
      showticklabels= not seperate_y_axis, 
 
      autorange=True, 
 
      type='linear' 
 
     ) 
 
    )

答えて

関連する問題