Customizing grid or adding line in the middle of x/y axis on a scatter plot

I have a scatter plot that pulls the data from a pandas DataFrame. I want to be able to divide it into a grid (but I’m not putting four grids together - instead, I want four quadrants). Is there a way to do it? I went over the entire documentation and I’m still unsure how. Alternatively, how do I customize so I can draw a line in the middle of x and y-axis (and I know where these points are so I don’t need that to be found)?

Hi,

Sounds like you want Spans:

  http://bokeh.pydata.org/en/latest/docs/user_guide/annotations.html#spans

Or, if you want to shade the quadrants, BoxAnnotation:

  http://bokeh.pydata.org/en/latest/docs/user_guide/annotations.html#box-annotations

Thanks,

Bryan

···

On Jan 31, 2017, at 5:30 PM, Kasia Rachuta <[email protected]> wrote:

I have a scatter plot that pulls the data from a pandas DataFrame. I want to be able to divide it into a grid (but I'm not putting four grids together - instead, I want four quadrants). Is there a way to do it? I went over the entire documentation and I'm still unsure how. Alternatively, how do I customize so I can draw a line in the middle of x and y-axis (and I know where these points are so I don't need that to be found)?

--
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/f5fa735f-b414-4acd-858f-c8bd71c99d8c%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.