☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

how to keep legend in the glyph method that takes ColumnDataSource

Community Support
caicaiyan.z
caicaiyan.z

Hi,

I am trying to put down legend in the plot by glyph method that takes ColumnDataSource and its columns (i.e., column/variable names) as input. I knew that it is deprecated for a combination of ColumnDataSource and sequence literals in the glyph method, so now my original code wasn’t working properly. I have pasted an example of my code.

f.circle(x=‘Admin’,y=‘Mean’, size = ‘N_size’, fill_alpha = .2, line_dash=[5,3], legend = ‘Average Score’, source=Total_SS)

Does someone has an idea how to add the legend back onto the plot but still I can keep my ColumnDataSource in the code?

Thanks much!

⌁   Link to post
Bryan
Bryan

Hi,

What is the exact error message you are seeing? It is *always* a good idea to provide the full text of any error massages, verbatim.

Thanks,

Bryan

···

On Aug 15, 2017, at 08:38, caicaiyan.z@gmail.com wrote:

Hi,

I am trying to put down legend in the plot by glyph method that takes ColumnDataSource and its columns (i.e., column/variable names) as input. I knew that it is deprecated for a combination of ColumnDataSource and sequence literals in the glyph method, so now my original code wasn't working properly. I have pasted an example of my code.

f.circle(x='Admin',y='Mean', size = 'N_size', fill_alpha = .2, line_dash=[5,3], legend = 'Average Score', source=Total_SS)

Does someone has an idea how to add the legend back onto the plot but still I can keep my ColumnDataSource in the code?

Thanks much!

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/922c78ad-2c3e-4df1-833a-bcddc9b288ae%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled