New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] grid_line_alpha value of '1.0' doesn't work but '0.99' does work #12658
Comments
The default value is 1.0, so setting the property to the same value is a no-op. We need to mark such properties as "dirty", so that when applying a theme, the default-looking value is preferred over the themed default. |
That was my first thought as well, but it's also a little weird. bokeh/src/bokeh/core/property/descriptors.py Lines 308 to 335 in 0326ae1
So maybe there a bug in that computation. |
@mattpap FYI there has also been some recent talk around supporting light/dark modes via themes, so we will want to make sure all requirements are considered and make sure everyone is on the same page. I'd advise making a discussion first before embarking on any wider or structural changes to properties (making an issue for light/dark is on my short-term to-do). |
I don't see this bug as a theming issue, but as a simple bokeh doesn't respect user inputs type of issue. |
@gauravk97 If you want to take a look at things, that's great, and we would be happy to receive and review any proposed solution in a PR. I should be up front that this issue intersects the low-level foundational property system, so it will require some extra care. |
Sure, I was just itching to code some python. If you have some other beginner issue (for this repo), I'd be happy to look into that as well. Otherwise, I will continue checking this one. |
@gauravk97 this one might be good to look at |
Software versions
Python version : 3.8.3 (default, Jul 2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)]
IPython version : 8.1.1
Tornado version : 6.1
Bokeh version : 3.0.2
BokehJS static path : .......\lib\site-packages\bokeh\server\static
node.js version : (not installed)
npm version : (not installed)
Operating system : Windows-10-10.0.19041-SP0
Expected behavior
When using the
dark_minimal
theme, and setting thegrid_line_alpha
value to 1 (or 1.0):I would expect the grid line to become opaque.
Observed behavior
The grid line alpha does not change.
Example code
I expect to see the "After" plot having a more opaque grid line, than the "Before" graph.
However, they look the same.
But, if I instead set the grid_line_alpha to 0.99, then it visibly changes.
Screenshots
The text was updated successfully, but these errors were encountered: