holoviz / holoviz/hvplot

timedelta64[ns] axis tick formatting problem

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

Description

#### ALL software version info

hvplot 0.6.0

#### Description of expected behavior and the observed behavior

It looks like tick formatting for time axes is not being applied for the first plot in a layout, only in subsequent ones:

```python
import pandas as pd
import holoviews as hv
import hvplot.pandas
import numpy as np

hv.extension('bokeh')

time_end = 10
sampling_time = 0.2

timepoints = np.arange(0, time_end, sampling_time)

df = pd.DataFrame(dict(
time=pd.to_timedelta(timepoints, 's'),
value=np.sin(timepoints),
value_2=timepoints,
))

(
df.hvplot(x='time', y='value')
+ df.hvplot(x='time', y='value_2')
)
```

![image](https://user-images.githubusercontent.com/4762711/86167994-7b789a80-bae5-11ea-8217-5b321dc7a219.png)

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.