I haven’t been able to figure out how to change fill_alpha for charts. For example,
import numpy as np
import pandas as pd
import bokeh.charts as bc
N = 4000
data = np.random.multivariate_normal(
[0, 0], cov=np.array([[1, .5], [.5, 1]]), size=N)
data = pd.DataFrame(data=data, columns=[‘ad spending’, ‘sales’])
p = bc.Scatter(data=data, x=‘ad spending’, y=‘sales’)
bc.show(p)
``
How to change the fill_alpha value for the Scatter chart? p objects has properties such as p.background_fill_alpha but I haven’t been able to find fill_alpha.
For more control, I recommend using the bokeh.plotting API. For a simple scatter, it is almost an identical amount of code. You can see an example that changes the fill_alpha of a circle scatter here:
I haven't been able to figure out how to change fill_alpha for charts. For example,
import numpy as np
import pandas as pd
import bokeh.charts as bc
N = 4000
data = np.random.multivariate_normal(
[0, 0], cov=np.array([[1, .5], [.5, 1]]), size=N)
data = pd.DataFrame(data=data, columns=['ad spending', 'sales'])
p = bc.Scatter(data=data, x='ad spending', y='sales')
bc.show(p)
How to change the fill_alpha value for the Scatter chart? p objects has properties such as p.background_fill_alpha but I haven't been able to find fill_alpha.