如何更改 Holoviews 和弦图中的标签字体大小?

How to change labels font size in Holoviews chord diagram?

我正在尝试使用 HoloViews 绘制和弦图,它似乎工作正常,但我不知道如何更改标签字体大小。我尝试更改 fontscale 值,但它似乎对标签没有影响。 这是我的代码:

import pandas as pd
import holoviews as hv
from holoviews import dim, opts
hv.extension('bokeh')


chord = hv.Chord(temp) # temp is a pandas dataframe with cloumns=["from","to"]
chord.opts(fontscale=2, width=800, height=800, title='Collaborative Network')
chord.opts(
    opts.Chord(cmap='Category20', edge_cmap='Category20', edge_color=dim('to').str(), 
               labels='index', node_color=dim('index').str()))

我决定在代码末尾添加:chord.opts(label_text_font_size='12pt')