BokehUserWarning: ColumnDataSource's columns must be of the same length" when plotting Paths but not Polygons
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 124
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 1
Description
#### ALL software version info
- `hvplot` version = '0.8.3'
- `geoviews` version = '1.9.6'
- `holoviews` version = '1.16.0'
- Python version = 3.10
#### Description of expected behavior and the observed behavior
When plotting a GeoDataFrame with MultiLines, if I attempt to provide an argument for `alpha` or `c` I get a BokehUserWarning: ColumnDataSource's columns must be of the same length" warning and don't receive any plot. **Oddly, I don't get this warning when I plot Polygons**.
For example:
```python
my_geo_df[['geometry', 'tp_conc']].hvplot(
geo=True,
crs=my_geo_df.crs.to_string(),
c='tp_conc',
)
```
fails with this message:
`BokehUserWarning: ColumnDataSource's columns must be of the same length. Current lengths: ('color', 99), ('tp_conc', 3755), ('xs', 3755), ('ys', 3755)`
OR
```python
my_geo_df[['geometry', 'tp_conc']].hvplot(
geo=True,
crs=my_geo_df.crs.to_string(),
alpha=gv.dim('tp_conc'),
```
fails with this message:
`BokehUserWarning: ColumnDataSource's columns must be of the same length. Current lengths: ('alpha', 99), ('tp_conc', 3755), ('xs', 3755), ('ys', 3755)`
**Why could the dimension created by geo/holoviews for `alpha` or `color` be way smaller than the other dimensions?**
Thanks
Contributor guide
Assessment
This issue has not been assessed yet.