how to keep legend in the glyph method that takes ColumnDataSource

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!

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, [email protected] 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 [email protected].
To post to this group, send email to [email protected].
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.