Title formatting in scrubber

In the example below, how can one change the title format? I would like to only show the date, not the time.

1 Like

Probably the only way at the moment is to preprocess your dataset’s variable:
ds['time'] = ds['time'].dt.strftime('%Y-%m-%d')
Or save to a different coordinate variable and groupby that instead.

1 Like

Thanks! This works, and in order to preserve my ds[‘time’] as datetime type I can work with temporary assignment only for the plotting

tmptime=ds['time'].copy()
ds['time']=ds['time'].dt.strftime('%Y-%m-%d')
hvp  = ds.hvplot.image(x='x',y='y',rasterize=True,groupby='time',widgets={'time':pn.widgets.Select})
ds['time']=tmptime
del tmptime
hvp

And if one wanted the label also to change to date one would rename the coordinate itself:
ds=ds.rename({'time':'Date'})