holoviz / geoviews

Simple, concise geographical visualization in Python
http://geoviews.org
BSD 3-Clause "New" or "Revised" License
590 stars 76 forks source link

Locations in hvplot raises warning #576

Closed hoxbro closed 2 years ago

hoxbro commented 2 years ago

ALL software version info

geoviews   : 1.9.5
holoviews  : 1.15.0a2
hvplot     : 0.8.0

Description of expected behavior and the observed behavior

When having features like coastline called by hvplot a warning is given with the latest dev release of holoviews. The warning is not present with version 1.14.

I have added the bug in Geoviews as this is where the warning is emitted from:

https://github.com/holoviz/geoviews/blob/1bd771233dfbd1208e86224f987c9003f121164a/geoviews/element/geo.py#L149-L150

Complete, minimal, self-contained example code that reproduces the issue

import xarray as xr
import hvplot.xarray

data = xr.tutorial.open_dataset("rasm").load()['Tair'].isel(time=0)
data.hvplot.quadmesh('xc', 'yc', coastline=True)

Screenshots or screencasts of the bug in action

With holoviews 1.15: image

With holoviews 1.14: image

philippjfr commented 2 years ago

Thanks @Hoxbro!

hoxbro commented 2 years ago

Fixed downstream by https://github.com/holoviz/hvplot/pull/850