I'm trying to combine a geoviews.tile_sources
layer with a datashade
layer. Both layers individually result in the correct axis (see image), but when combined (using *
) the scale becomes distorted.
import numpy as np
import pandas as pd
import holoviews as hv
from geoviews.tile_sources import EsriImagery
from holoviews.operation.datashader import datashade
hv.extension('bokeh')
lats = np.random.uniform(51.111, 51.222, 10000)
longs = np.random.uniform(1.31, 1.33, 10000)
df = pd.DataFrame({"latitude": lats, "longitude": longs})
points = hv.Points(df, ['longitude', 'latitude'])
shader = datashade(points)
EsriImagery * shader
However, both of the individual plots are correct:
shader + EsriImagery