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.

Control glyph order

See original GitHub issue

There needs to be a way to control the vertical stacking of glyphs. They are not displayed in the order they are created. The lack of Z-order control means I cannot do something as simple as displaying a line glyph on top of a BoxAnnotation. Instead I have to resort to using certain colors and alpha values.

I think other annotations are impacted too. For example, how do I constrain a Label to only appear within the plot window? I haven’t figured this out and am guessing it’s related to the display layers.

Yes, I’ve read #696 and it shouldn’t have been closed. This commit is the only one I see related to Z order and it did not expose control the user.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dubreuiacommented, Jul 18, 2019

Ok found it, the renderer is the thing returned by BoxAnnotation or quad, so for future reference:

box = BoxAnnotation(...)
box.level = 'underlay'
1reaction
bryevdvcommented, Jan 30, 2017

By default, annotations render on top of glyphs, since that is the more common use-case. If you’d like to put them in a different render level, you can set a different render level for them:

http://bokeh.pydata.org/en/latest/docs/reference/models/renderers.html#bokeh.models.renderers.Renderer.level

http://bokeh.pydata.org/en/latest/docs/reference/core/enums.html#bokeh.core.enums.RenderLevel

e.g. all 'underlay' renderers are rendered before all 'glyph' level renderers.

Among the renderers in a given render level (e.g. glyphs) things are rendered in the order they are added.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to control glyph order in glyph browsers?
1) To control it manually, in the Font Window, change the second popdown to "Index" (I think the default is Encoding). The third...
Read more >
Changing Glyph Order in App
It's actually pretty easy to control glyph placement using the built-in controls and a little effort on the user part. Decide on the...
Read more >
Glyph Control (Source Control VSPackage) - Visual Studio ...
A source control VSPackage can exercise two levels of glyph control. It can limit the choice of glyphs to a predefined set of...
Read more >
Glyph Hack - Fev Games
In this phase, you must draw the glyphs you saw during the glyph display phase in the same order. A countdown timer will...
Read more >
Glyphs - HeroScape Wiki - Fandom
Glyph of Kelda (Healing): When a Hero you control lands on this Glyph, ... Glyph of Oreld (Intercept Order): When one of your...
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