这是我的代码:
import holoviews as hv
import datashader as ds
import dask.dataframe as dd
import geoviews as gv
from cartopy import crs
from holoviews.operation.datashader import datashade
hv.extension('bokeh', width=95)
%opts RGB [width=1200 height=682 xaxis=None yaxis=None show_grid=False bgcolor='black']
%opts Shape (fill_alpha=0 line_width=1.5) [apply_ranges=False tools=['tap']]
%opts Points [apply_ranges=False ] WMTS (alpha=0.5)
color_key = {worda:'red', wordb:'green'}
races = {worda:worda, wordb:wordb}
color_points = hv.NdOverlay({races[k]: gv.Points([0,0], crs=crs.PlateCarree())(style=dict(color=v))
for k, v in color_key.items()})
census_points = hv.Points(df, kdims=['x', 'y'], vdims=['word'])
x_range, y_range = ((-13884029.0, -7453303.5), (2818291.5, 6335972.0)) # Continental USA
shade_defaults = dict(x_range=x_range, y_range=y_range, x_sampling=10, y_sampling=10, width=1200, height=682,
color_key=color_key, aggregator=ds.count_cat('word'),)
shaded = datashade(census_points, **shade_defaults)
shaded()
结果看起来像: 在此处输入图像描述, 但我希望点的大小更大,如下所示: 在此处输入图像描述
如何更改我的代码以实现我的目标?谢谢!