hvplot icon indicating copy to clipboard operation
hvplot copied to clipboard

Error setting font size

Open LinuxIsCool opened this issue 2 years ago • 0 comments

ALL software version info

bokeh==2.4.3 holoviews==1.15.2 hvplot==0.8.3 jupyter-bokeh==3.0.5 jupyterlab==3.6.0 jupyterlab-pygments==0.2.2 jupyterlab-widgets==3.0.7 jupyterlab_server==2.22.1 networkx==3.1 Python 3.10.6

Description of expected behavior and the observed behavior

Should be able to modify font size according to the docs.

Complete, minimal, self-contained example code that reproduces the issue

hvnx.draw(G, pos, font_size=12, with_labels=True, width=1800, height=950,  alpha=0.5, node_size=600, node_color='type', cmap=['red','blue'])

Stack traceback and/or browser JavaScript console output

ValueError [Call holoviews.ipython.show_traceback() for details]
failed to validate Text(id='14017', ...).text_font_size: expected an element of either String, Dict(Enum('expr', 'field', 'value', 'transform'), Either(String, Instance(Transform), Instance(Expression), FontSize)) or FontSize, got 12

LinuxIsCool avatar May 12 '23 03:05 LinuxIsCool