Is there a way to draw the axes in the middle of a figure?
Something Like this solution using spines in Matplotlib.
(http://stackoverflow.com/questions/31556446/drawing-axis-in-the-middle-of-the-figue-in-python)
Thank you.
Is there a way to draw the axes in the middle of a figure?
Something Like this solution using spines in Matplotlib.
(http://stackoverflow.com/questions/31556446/drawing-axis-in-the-middle-of-the-figue-in-python)
Thank you.
You can use ‘span’ from the models API.
from bokeh.models import Span
xax = Span(location=0,dimension=‘width’, level=‘glyph’)
p.add_layout(xax)
#yaxis
yax = Span(location=0,dimension=‘height’, level=‘glyph’)
p.add_layout(yax)
If you’re using charts, you’d probably have to do:
chartname.renderers.extend([xax])``
Hopefully this helped,
-Harshit
On Fri, Dec 30, 2016 at 9:37 AM, codesmith111@gmail.com wrote:
Is there a way to draw the axes in the middle of a figure?
Something Like this solution using spines in Matplotlib.
(http://stackoverflow.com/questions/31556446/drawing-axis-in-the-middle-of-the-figue-in-python)
Thank you.
–
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/3485f818-06e5-43a0-9e1c-1fc88ac56af3%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,
There's an open GitHub issue to allow Axes to be located in other places besides the plot borders:
It's an old issue, but I am hopeful it can be prioritized in the near future. In the mean time, the Span suggestion from Harshit is probably your best bet.
Thanks,
Bryan
On Dec 31, 2016, at 12:38 AM, Harshit Khare <khareharshit@gmail.com> wrote:
You can use 'span' from the models API.
from bokeh.models import Span
# xaxis
xax = Span(location=0,dimension='width', level='glyph')
p.add_layout(xax)#yaxis
yax = Span(location=0,dimension='height', level='glyph')
p.add_layout(yax)If you're using charts, you'd probably have to do:
chartname.renderers.extend([xax])Hopefully this helped,
-HarshitOn Fri, Dec 30, 2016 at 9:37 AM, <codesmith111@gmail.com> wrote:
Is there a way to draw the axes in the middle of a figure?
Something Like this solution using spines in Matplotlib.
(http://stackoverflow.com/questions/31556446/drawing-axis-in-the-middle-of-the-figue-in-python\)
Thank you.--
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/3485f818-06e5-43a0-9e1c-1fc88ac56af3%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.--
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/CAC6K5t_mmjT_ZEn4-x1fzu50RqhqrBq9Hcb3HVYceWdXKg-tvw%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
Thank you Bryan and Harshit -I really appreciate your input. This will work for me for now. I hope that i can be prioritized in the New Year. ![]()
On Saturday, December 31, 2016 at 10:25:32 AM UTC-5, Bryan Van de ven wrote:
Hi,
There’s an open GitHub issue to allow Axes to be located in other places besides the plot borders:
https://github.com/bokeh/bokeh/issues/113
It’s an old issue, but I am hopeful it can be prioritized in the near future. In the mean time, the Span suggestion from Harshit is probably your best bet.
Thanks,
Bryan
On Dec 31, 2016, at 12:38 AM, Harshit Khare khareh...@gmail.com wrote:
You can use ‘span’ from the models API.
from bokeh.models import Span
xaxis
xax = Span(location=0,dimension=‘width’, level=‘glyph’)
p.add_layout(xax)
#yaxis
yax = Span(location=0,dimension=‘height’, level=‘glyph’)
p.add_layout(yax)
If you’re using charts, you’d probably have to do:
chartname.renderers.extend([xax])
Hopefully this helped,
-Harshit
On Fri, Dec 30, 2016 at 9:37 AM, codesm...@gmail.com wrote:
Is there a way to draw the axes in the middle of a figure?
Something Like this solution using spines in Matplotlib.
(http://stackoverflow.com/questions/31556446/drawing-axis-in-the-middle-of-the-figue-in-python)
Thank you.
–
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+un...@continuum.io.
To post to this group, send email to bo...@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/3485f818-06e5-43a0-9e1c-1fc88ac56af3%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
–
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+un...@continuum.io.
To post to this group, send email to bo...@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAC6K5t_mmjT_ZEn4-x1fzu50RqhqrBq9Hcb3HVYceWdXKg-tvw%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

End of archived discussion · Replies are disabled