holoviz / holoviz/hvplot

Zoom reset when the slider of an Image is moved

Open
#667 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
124
Avg merge
1d 18h
Merged PRs (30d)
1

Description

When an image has sliders, moving the sliders when zoomed in resets the zoom to the initial view.
```python
import xarray as xr
import holoviews as hv
import hvplot.xarray

ds = xr.tutorial.open_dataset('air_temperature')
hvplot_dn_image = ds.hvplot('lon', 'lat')
hvplot_dn_image
```

This does not happen with this piece of code using Holoviews directly, i.e. the zoom is not changed when zoomed in and the slider is moved.
```python
hvds = hv.Dataset(ds)
hv_dn_image = hvds.to(hv.Image, kdims=['lon', 'lat'], dynamic=True)
hv_dn_image
```

![hvplot_zoom](https://user-images.githubusercontent.com/35924738/137643538-981cd24e-a4c1-462a-abaf-c7c2187c600d.gif)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.