☰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

Line charts with markers

Community Support
jxrossel
jxrossel

Hi,

I have a pandas dataframe with 3 columns ( x_values, y_values, movement_id ). I’d like to plot a line for each set of data having a common movement_id, with each line having a unique color and marker type.

I can do:

Line( data, x=‘x_values’, y=‘y_values’, marker=‘movement_id’, color=‘movement_id’ ) # → no markers

Or:

Scatter( data, x=‘x_values’, y=‘y_values’, marker=‘movement_id’, color=‘movement_id’ ) # → no lines

As far as I’ve understood, I cannot combine 2 charts on a single figure. So… is it possible to have both markers and lines ? Or do I have to move a step down to the .plotting API and do the grouping and color listing manually ?

⌁   Link to post
Bryan
Bryan

Hi,

At least for the time being, you will want to use the bokeh.plotting API to combine glyphs.

Thanks,

Bryan

···

On May 24, 2017, at 03:15, jxrossel@gmail.com wrote:

Hi,

I have a pandas dataframe with 3 columns ( x_values, y_values, movement_id ). I'd like to plot a line for each set of data having a common movement_id, with each line having a unique color and marker type.

I can do:

Line( data, x='x_values', y='y_values', marker='movement_id', color='movement_id' ) # --> no markers

Or:

Scatter( data, x='x_values', y='y_values', marker='movement_id', color='movement_id' ) # --> no lines

As far as I've understood, I cannot combine 2 charts on a single figure. So... is it possible to have both markers and lines ? Or do I have to move a step down to the .plotting API and do the grouping and color listing manually ?

--
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/764430b6-343c-4175-999c-5c80b8db3dc7%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