2017-10-12 6 views
0

Holoviewプロットを表示するとき、グリッド線はありません。私はそれらを切り替える方法を見つけるために苦労しています。Holoview Curveのグリッド線を有効にする方法

Graph without gridlines

コードスニペット:

renderer = hv.renderer('bokeh').instance(mode='server') 



    plot = hv.Curve(
    data 
    , kdims=['observation_time'] 
    , vdims=vdims 
    , extents=(pd.datetime(year=2000, month=1, day=1, hour=0, minute=0, second=0), None, pd.datetime(year=2000, month=1, day=1+days, hour=0, minute=0, second=0), None) 
    , label=vdims_str + " " 
    )(plot=dict(width=WIDTH)) 

... 

plot1 = _get_curve(date_index=date_index, vdims_str='total_a') 
plot2 = _get_curve(date_index=date_index, vdims_str='total_b') 
plot3 = _get_curve(date_index=date_index, vdims_str='total_c') 

plots = plot1 * plot2 * plot3 

答えて

2

を私は問題を解決しました。 show_grid=Trueが必要です。

plot = hv.Curve(
    data 
    , kdims=['observation_time'] 
    , vdims=vdims 
    , extents=(pd.datetime(year=2000, month=1, day=1, hour=0, minute=0, second=0), None, pd.datetime(year=2000, month=1, day=1+days, hour=0, minute=0, second=0), None) 
    , label=vdims_str + " " 
    )(plot=dict(width=WIDTH, show_grid=True)) 
関連する問題