When line_width is set to 0 the glyph boundaries don't disappear
See original GitHub issueFor 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
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
One possible reason to do something: Currently
line_color=None
actively suppresses the call toctx.stroke
whereasline_alpha=0
still callsctx.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.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.