Changing fill_alpha for charts

Hi,

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§

``

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.

Thank you,

Joon

Hi Joon,

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:

  http://bokeh.pydata.org/en/latest/docs/gallery/color_scatter.html

Thanks,

Bryan

···

On Sep 24, 2016, at 4:55 PM, Joon Ro <[email protected]> wrote:

Hi,

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.

Thank you,
Joon

--
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/5e03603c-f5c6-4d64-8248-a85932320aa0%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.