question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ray glyphs not working when figure's y_axis_type='log'

See original GitHub issue

ALL software version info (bokeh, python, notebook, OS, browser, any other relevant packages)

Using bokeh 0.13.0 on jupyter notebook, Mac, Safari

Description of expected behavior and the observed behavior

When a ray is placed on a figure with y_axis_type=‘log’, the ray does not appear on the figure when plotted. However, when y_axis_type is ‘linear’, the ray works fine.

Complete, minimal, self-contained example code that reproduces the issue

p = figure(y_axis_type='log')
p.ray(x=[0], y=[0], length=0, angle=np.pi/2, line_width=1)
p.ray(x=[0], y=[0], length=0, angle=np.pi*3/2, line_width=1)
show(p)

Screenshots or screencasts of the bug in action

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
davidwang20commented, Jul 16, 2018

I see. The reason I used the ray glyph instead of span was so that I could add it to a plot legend and click to hide. Is there any way to do that with a span annotation?

0reactions
bryevdvcommented, Jul 16, 2018

No, but in that case I would suggest a single line is better anyway:

from bokeh.io import output_file, show
from bokeh.models import Legend, LegendItem
from bokeh.plotting import figure

from bokeh.models import Span
p = figure(y_axis_type='log', x_range=(-5, 5), y_range=(10e-10, 10e10))
span = Span(location=0, dimension='height', line_color="red")

r = p.line(x=[1,1], y=[10e-20, 10e20])
p.add_layout(span)
p.add_layout(Legend(items=[LegendItem(label="span", renderers=[r])]))

show(p)
screen shot 2018-07-16 at 13 46 59

As this has now entered “general support question” territory I have to request that further discussion move to the mailing list.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Combining glyphs just doesn't work, for some reason.
I've looked everywhere and no one seems to have this problem. The font type is OTF, if that's useful info... Also, input DOES...
Read more >
Using Glyphs in Cricut Design Space —Mac & PC
IMPORTANT UPDATE: 1/27/20: It looks like copying glyphs from the character map is not working with the new Cricut Design Space desktop app, ......
Read more >
Finding common font problems automagically - FontForge
This command works either in the font view, the outline view or the metrics view. In the font view it will examine all...
Read more >
Mastering Julia
Develop your analytical and programming skills further in Julia to solve complex data processing problems. Start Reading Start Reading ...
Read more >
Julia: High Performance Programming. Learning Path [PDF]
What this learning path covers Module 1, Getting Started with Julia, a head start to tackle your numerical and data problems with Julia....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found