当我显示Holoview图时,没有网格线。我正在努力找出如何打开它们。
代码段:
from itertools import islice
def extract_lines(in_file, num):
with open(in_file) as in_f:
gen = (line for line in in_f if not line.startswith('>'))
return '\n'.join(islice(gen, num))
答案 0 :(得分:3)
我解决了这个问题。需要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))