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.

When line_width is set to 0 the glyph boundaries don't disappear

See original GitHub issue

For defects or deficiencies, please provide ALL OF THE FOLLOWING:

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

bokeh 1.0.4, python 3.6.6, notebook Kaggle, OS Windows 10, browser Chrome

Description of expected behavior and the observed behavior

I am trying to remove the glyph boundaries by using line_width=0 but they don’t disappear. As a temporary fix I use line_alpha=0 instead.

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

from bokeh.plotting import figure, output_file, show

output_file("patch.html")

p = figure(plot_width=400, plot_height=400)

p.patch([1, 2, 3, 4, 5], [6, 7, 8, 7, 3], fill_color='white', line_width=0)

show(p)

Screenshots or screencasts of the bug in action

Linewidth bug

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
bryevdvcommented, Mar 15, 2019

One possible reason to do something: Currently line_color=None actively suppresses the call to ctx.stroke whereas line_alpha=0 still calls ctx.stroke but the result just happens to be invisible. If this were generalized then we could consistently prevent code execution for invisible configurations in all cases.

1reaction
jbednarcommented, Mar 15, 2019

I agree; a bad or very difficult fix isn’t worth it. But if there is a good, easy fix, I’d say it’s worth it; people will often not report something like this if there’s a workaround. Sounds like there isn’t, but if generalizing that approach is useful for some other reason, addressing this problem could be considered.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ggplot2 3.4.0 - Tidyverse
From this release on, linewidth will take over sizing of the width of lines—something that was earlier handled by size . The reason...
Read more >
Plotting with basic glyphs - Bokeh documentation
To have an “infinite” ray that always extends to the edge of the plot, set length to 0 . from bokeh.plotting import figure,...
Read more >
How to get intersection point(s) of two glyphs? - TeX
Unfortunately, and I don't know why yet, some of the intersections are missing. I have made use of the technique described here: Get...
Read more >
Powerline glyph does not fill whole 'cell' / 'box' height · Issue #13029 ...
I do not really know how Windows Terminal finds out its cell size. If one understands that maybe the font can be beat...
Read more >
Folium 0.12.1 documentation
Generate a base map of given width and height with either default ... min_zoom (int, default 0) – Minimum allowed zoom level for...
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