Alternating shaded bands - band_fill_alpha, band_fill_color

Hi there,

I just upgraded to the latest version of Bokeh (0.13.0) and needed to update some plotting code I’ve been running for a while.

Within that code, I have a few lines for creating alternating bands to help distinguish between adjacent groups of bars. When I run that code now, I’m getting unexpected results.

Create shaded bands to make it easier to see the individual days

p1.xgrid.ticker = FixedTicker(ticks=[-0.5+d for d in range(campaign_period+2)])
p1.xgrid.band_fill_alpha = 0.01
p1.xgrid.band_fill_color = “gray”
What is strange is now the band_fill_alpha parameter doesn’t seem to control the difference between the shaded and unshaded regions. Instead it seems to control the overall intensity of the background. I can tell that there is a light-dark band pattern there but it’s always very subtle. Can anyone clue me in on what the new behavior is here, or how to interpret it? Before, the above produced light gray bands interspersed with white bands. Now it alternates between subtle variations of gray bands.

Thanks in advance for any pointers.

Chris

Hi,

I'm not aware of any intentional changes. The few existing examples in the repo have all been unchanged through any recent work, so any changes must not be captured by the usage in those examples. It's not really possible to say much without more information. Screenshots, a complete example script, and specific versions before/after would be a useful start.

Thanks,

Bryan

···

On Oct 2, 2018, at 18:13, [email protected] wrote:

Hi there,

I just upgraded to the latest version of Bokeh (0.13.0) and needed to update some plotting code I've been running for a while.
Within that code, I have a few lines for creating alternating bands to help distinguish between adjacent groups of bars. When I run that code now, I'm getting unexpected results.

# Create shaded bands to make it easier to see the individual days
p1.xgrid.ticker = FixedTicker(ticks=[-0.5+d for d in range(campaign_period+2)])
p1.xgrid.band_fill_alpha = 0.01
p1.xgrid.band_fill_color = "gray"
What is strange is now the band_fill_alpha parameter doesn't seem to control the difference between the shaded and unshaded regions. Instead it seems to control the overall intensity of the background. I can tell that there is a light-dark band pattern there but it's always very subtle. Can anyone clue me in on what the new behavior is here, or how to interpret it? Before, the above produced light gray bands interspersed with white bands. Now it alternates between subtle variations of gray bands.

Thanks in advance for any pointers.

Chris

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/dfd25beb-9622-492e-8577-c2443ef9d65d%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Makes sense. Thanks Bryan. I'll see what I can gin up...

Chris

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

···

On Tuesday, October 2, 2018 6:38 PM, Bryan Van de ven <[email protected]> wrote:

Hi,

I'm not aware of any intentional changes. The few existing examples in the repo have all been unchanged through any recent work, so any changes must not be captured by the usage in those examples. It's not really possible to say much without more information. Screenshots, a complete example script, and specific versions before/after would be a useful start.

Thanks,

Bryan

> On Oct 2, 2018, at 18:13, [email protected] wrote:
> Hi there,
> I just upgraded to the latest version of Bokeh (0.13.0) and needed to update some plotting code I've been running for a while.
> Within that code, I have a few lines for creating alternating bands to help distinguish between adjacent groups of bars. When I run that code now, I'm getting unexpected results.
>
> Create shaded bands to make it easier to see the individual days
>
> =================================================================
>
> p1.xgrid.ticker = FixedTicker(ticks=[-0.5+d for d in range(campaign_period+2)])
> p1.xgrid.band_fill_alpha = 0.01
> p1.xgrid.band_fill_color = "gray"
> What is strange is now the band_fill_alpha parameter doesn't seem to control the difference between the shaded and unshaded regions. Instead it seems to control the overall intensity of the background. I can tell that there is a light-dark band pattern there but it's always very subtle. Can anyone clue me in on what the new behavior is here, or how to interpret it? Before, the above produced light gray bands interspersed with white bands. Now it alternates between subtle variations of gray bands.
> Thanks in advance for any pointers.
> Chris
> --
> You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/dfd25beb-9622-492e-8577-c2443ef9d65d%40continuum.io.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--

You received this message because you are subscribed to a topic in the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this topic, visit https://groups.google.com/a/continuum.io/d/topic/bokeh/X937MPsWmsM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/D9B15A29-E3CA-4E0A-A675-284DBA3102A1%40anaconda.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.