holoviz / geoviews

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

quadmesh with geo option gives wrong coordinates in hover information #480

Open juanfcocontreras opened 4 years ago

juanfcocontreras commented 4 years ago

ALL software version info

(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc) hvplot 0.5.2 holoviews 1.13.2 geoviews 1.8.1 python 3.7.6 bokeh 2.0.1 macOS Catalina 10.15.4 (19E266) Firefox 74.0

Description of expected behavior and the observed behavior

When the quadmesh method is used together with geo option to show geographic information, the hover information regarding latitude and longitude coordinates is not correct. Ordinal numbers appear instead of actual latitude and longitude. This does not occur when using image instead of quadmesh, where the correct behavior is obtained.

I wasn't sure that this was a bug, but @philippjfr confirmed it in discourse:

https://discourse.holoviz.org/t/quadmesh-hover-information-and-tiles/406

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

import xarray as xr
import hvplot.xarray

ds = xr.open_dataset("./air_temperature.nc")

ds["air"].isel(time=0).hvplot.image(geo=True)  # working well

ds["air"].isel(time=0).hvplot.quadmesh(geo=True)  # not working well

Screenshots or screencasts of the bug in action

image quadmesh

philippjfr commented 4 years ago

Thanks for the detailed bug report, this will be very helpful.

jlstevens commented 4 years ago

This looks like this is fundamentally a geoviews issue where quadmesh is not handling the hover information correctly. For this reason, I'll assign this to the 0.7.0 milestone.

Edit: @philippjfr on the discourse post, you said this is an hvplot issue? If so please reassign the milestone if necessary...

philippjfr commented 3 years ago

This is indeed a GeoViews issue.