-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sankey plot label size #3531
Comments
Does the |
No, it does not - it says that this is not compatible across all extensions (current one used is matplotlib - bokeh is not great with ssh CLI environment) |
|
Great to hear |
[holoviews 1.11.2]
When using the bokeh extension, I can only change the font size of the plot title, not the labels within the plot. Is this expected behaviour or am I missing something? Misspelling e.g. I am using holoviews in a bokeh server with from bokeh.io import curdoc
from bokeh.layouts import layout
import holoviews as hv
from holoviews.plotting.bokeh import BokehRenderer
hv.extension('bokeh')
hv_sankey = hv.Sankey([
['A', 'X', 5],
['A', 'Y', 7],
['A', 'Z', 6],
['B', 'X', 2],
['B', 'Y', 9],
['B', 'Z', 4]]
).options(width=600, height=400,
node_width=100, # default 15
fontsize=25, # Changes title font size
# label_text_font_size2=15, # ValueError "Unexpected option 'label_text_font_size2' for Sankey type across all extensions. Similar options for current extension ('bokeh') are: ['label_text_font_size']"
# label_text_font_size=15, # error "expected an element of FontSize, got 15"
)
# Get HoloViews plot and attach document
doc = curdoc()
hvplot = BokehRenderer.get_plot(hv_sankey, doc)
hvplot.state.title.text = 'The Title!' # is affected by "fontsize=25"
# Make a bokeh layout and add it as the Document root
plot = layout([hvplot.state])
doc.add_root(plot) |
The addition of the |
Hi there,
I am still not sure weather this is even supported for the bokeh extension, since #3535 only changed the mpl extension(?). It would be awesome to have someone confirm this is still a bug, and not just specific to my machine. I tested it on both Windows and Linux. My full error message is
|
bokeh expects some unit when you specify a font size, e.g. label_text_font_size='15pt' |
Wow, thank you very much! I did try the string |
After about 2-3 hours of trying to change the label size of my (amazingly generated and awesome looking) sankey plot, I simply can not figure out how to change it. I have tried sublabel_size, node_size and just about every legal option available.
How do we change sankey label size
The text was updated successfully, but these errors were encountered: