holoviz / holoviz/hvplot

title not shown for Plotly backend

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

Description

I was trying to introduce a colleague to hvplots backends.

It seems that the `title` argument is not working for the Plotly backend.

![image](https://user-images.githubusercontent.com/42288570/234801547-09fd55cb-d29e-498a-95b3-5f8714434895.png)

```python
import panel as pn
from bokeh.sampledata.penguins import data as df
import matplotlib

matplotlib.use('agg')
pn.extension("plotly")

import hvplot.pandas

hvplot.extension("matplotlib", "bokeh", "plotly")

plot1 = df.hvplot.scatter(x='bill_length_mm', y='bill_depth_mm', by='species', title="Bokeh")
plot2 = df.hvplot.scatter(x='bill_length_mm', y='bill_depth_mm', by='species', title="Matplotlib")
plot3 = df.hvplot.scatter(x='bill_length_mm', y='bill_depth_mm', by='species', title="Plotly")

pn.Row(
pn.panel(plot1, backend="bokeh"),
pn.panel(plot2, backend="matplotlib"),
pn.panel(plot3, backend="plotly"),
).servable()
```

hvplot==0.8.3 holoviews==1.16.0a7

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.