You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to plot a single station location (lon,lat point) on a map, but set a larger lon/lat extent than default so I can more easily see the "big picture" for where the point is located.
@ahuang11 suggested I post an issue here, as padding should work, but seems to fail when map tiles are specified.
For example, this code:
importhvplot.pandasimportpandasaspd# Create a DataFrame with the single lon, lat pointdata= {'lon': [-70.4], 'lat': [42.35]} # A point in Massachusetts Baydf=pd.DataFrame(data)
df.hvplot.points('lon', 'lat', geo=True, size=10, color='red', tiles='ESRI', padding=2.0)
results in plot where it seems the padding was just ignored:
My workaround is to calculate and specify the xlim and ylim, but it would be nice if padding just worked!
Thanks @rsignell, I think it's way past time we revisited the map tiles renderer implementation in Bokeh which is at fault for a lot of the oddities (like this one) that happen if you add a tile to your plot.
I want to plot a single station location (lon,lat point) on a map, but set a larger lon/lat extent than default so I can more easily see the "big picture" for where the point is located.
@ahuang11 suggested I post an issue here, as
padding
should work, but seems to fail when map tiles are specified.For example, this code:
results in plot where it seems the padding was just ignored:
My workaround is to calculate and specify the xlim and ylim, but it would be nice if
padding
just worked!I'm running WSL on Windows 11 with:
The text was updated successfully, but these errors were encountered: