如何在Holoviews中显示GridSpace / GridMatrix周围的内轴?

时间:2018-05-22 01:19:06

标签: python plot holoviews

如何在情节周围显示Holoviews GridSpace / GridMatrix的内轴? shared_xaxis=Trueshared_yaxis=True仅显示左侧和底部的内轴。请参阅下面的示例代码和图片。

%%opts GridSpace [shared_xaxis=True shared_yaxis=True xaxis=None yaxis=None]

def sine_curve(phase, freq):
    xvals = [0.1* i for i in range(100)]
    return hv.Curve((xvals, [np.sin(phase+freq*x) for x in xvals]))

phases      = [0, np.pi/2, np.pi, 3*np.pi/2]
frequencies = [0.5, 0.75, 1.0, 1.25]
curve_dict_2D = {(p,f):sine_curve(p,f) for p in phases for f in frequencies}

hv.GridSpace(curve_dict_2D, kdims=['phase', 'frequency'])

Picture of sample output: Left: actual; Right: desired

0 个答案:

没有答案