holoviz / holoviz/hvplot

No plot produced when xticks and xtick labels specified in hvplot

Open
#320 7 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

Hi, I notice that when I specify xticks as a list of tuples of (coordinate, label), no plot is produced. If I don't include this option, then I get a plot. See example below.

```
import pandas as pd
import hvplot.pandas

test = pd.DataFrame({'idx': [0, 1], 'value': [0.4, 0.5]})

(
test
.hvplot(
x='idx',
y='value',
kind='bar'))
```

![image](https://user-images.githubusercontent.com/8428256/65752074-55643b00-e10c-11e9-987e-b848265f29f7.png)

```
test = pd.DataFrame({'idx': [0, 1], 'value': [0.4, 0.5]})

(
test
.hvplot(
x='idx',
y='value',
kind='bar',
xticks=[(0, 'a'), (1, 'b')]))
```
![image](https://user-images.githubusercontent.com/8428256/65752123-6d3bbf00-e10c-11e9-9c3c-821c44af83dc.png)

I am using pandas version 0.25.1, hvplot version 0.4.0, inside Jupyter Lab version 1.1.4

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.