# \#plotly

**URL:** https://discourse.holoviz.org/tag/plotly/31.md

[Latest](https://discourse.holoviz.org/latest.md) · [Categories](https://discourse.holoviz.org/categories.md) · [Tags](https://discourse.holoviz.org/tags.md)

---

## [Best way to debug plotly events](https://discourse.holoviz.org/t/best-way-to-debug-plotly-events/9226)

<div class="topic-metadata">

**Author:** [@TdO](https://discourse.holoviz.org/u/TdO)\
**Replies:** 0\
**Last updated:** [May 30, 2026, 7:41pm UTC](https://discourse.holoviz.org/t/best-way-to-debug-plotly-events/9226 "2026-05-30T19:41:26Z")

</div>

What is the best way to debug plotly events ? I have some issues with plotly scatter maps where I update a figure by adding a trace and also adjust the zoom and center of the map. This does not always works the way I ex…

---

## [Problem with multiple plotly plots on separate tabs](https://discourse.holoviz.org/t/problem-with-multiple-plotly-plots-on-separate-tabs/7588)

<div class="topic-metadata">

**Author:** [@ruffrob](https://discourse.holoviz.org/u/ruffrob)\
**Replies:** 0\
**Last updated:** [September 3, 2024, 1:31pm UTC](https://discourse.holoviz.org/t/problem-with-multiple-plotly-plots-on-separate-tabs/7588 "2024-09-03T13:31:47Z")

</div>

I have a Panel application that shows 3 different Plotly plots on different tabs. They display fine initially but when they are updated, one or more of the tabs is blank. Here is an example that illustrates it. The th…

---

## [Catch legend hide clicks in plotly pane](https://discourse.holoviz.org/t/catch-legend-hide-clicks-in-plotly-pane/7409)

<div class="topic-metadata">

**Author:** [@JuliaS92](https://discourse.holoviz.org/u/JuliaS92)\
**Replies:** 0\
**Last updated:** [July 9, 2024, 10:21am UTC](https://discourse.holoviz.org/t/catch-legend-hide-clicks-in-plotly-pane/7409 "2024-07-09T10:21:13Z")

</div>

Hi there, I am looking for a way to hide/show annotations together with the corresponding traces in plotly. Let’s say I have a simple scatter plot in a panel and added an annotation to one of the points: p = pn.pane.P…

---

## [Margin issues in Panel Plotly visualizations](https://discourse.holoviz.org/t/margin-issues-in-panel-plotly-visualizations/6981)

<div class="topic-metadata">

**Author:** [@mulryan](https://discourse.holoviz.org/u/mulryan)\
**Replies:** 2\
**Last updated:** [May 4, 2024, 1:58am UTC](https://discourse.holoviz.org/t/margin-issues-in-panel-plotly-visualizations/6981 "2024-05-04T01:58:40Z")

</div>

Hello! I am creating a multi-page dashboard (via widgets on sidebar) application, but am having an issue where the right margins of Plotly visualizations create extra unnecessary space and cause the margins to expand. I …

---

## [Plotly pane not resizing verticaly when in a FloatPanel layout](https://discourse.holoviz.org/t/plotly-pane-not-resizing-verticaly-when-in-a-floatpanel-layout/7175)

<div class="topic-metadata">

**Author:** [@soluble](https://discourse.holoviz.org/u/soluble)\
**Replies:** 0\
**Last updated:** [April 26, 2024, 4:24pm UTC](https://discourse.holoviz.org/t/plotly-pane-not-resizing-verticaly-when-in-a-floatpanel-layout/7175 "2024-04-26T16:24:11Z")

</div>

Hello, Anyone knows how to make a plotly pane vertically resizable when imbedded in a FloatPanel ? Here is a sample code that does not work for me (when run from CLI). import panel as pn import pandas as pd import num…

---

## [Polar plots using Panel](https://discourse.holoviz.org/t/polar-plots-using-panel/7116)

<div class="topic-metadata">

**Author:** [@killcoder](https://discourse.holoviz.org/u/killcoder)\
**Replies:** 4\
**Last updated:** [April 17, 2024, 9:32pm UTC](https://discourse.holoviz.org/t/polar-plots-using-panel/7116 "2024-04-17T21:32:44Z")

</div>

Hello, I’m been trying to generate polar plots to add them into my panel applications. I have tried many different packages (bokeh, holoviews, plotly etc.) without any luck. Below is a minimum working example using plo…

---

## [How to acess / listen to the click event of a ´pn.pane.Plotly´?](https://discourse.holoviz.org/t/how-to-acess-listen-to-the-click-event-of-a-pn-pane-plotly/7093)

<div class="topic-metadata">

**Author:** [@ambrustorok](https://discourse.holoviz.org/u/ambrustorok)\
**Replies:** 1\
**Last updated:** [April 11, 2024, 12:08pm UTC](https://discourse.holoviz.org/t/how-to-acess-listen-to-the-click-event-of-a-pn-pane-plotly/7093 "2024-04-11T12:08:44Z")

</div>

Let’s suppose having a plot in a Plotly pane. I want to execute a handler when the user clicks the legend of the plot. According to the Documentation, watching the click\_data parameter should be the way to go, however no…

---

## [Linked plots with Plotly not working?](https://discourse.holoviz.org/t/linked-plots-with-plotly-not-working/7065)

<div class="topic-metadata">

**Author:** [@banesullivan-kb](https://discourse.holoviz.org/u/banesullivan-kb)\
**Replies:** 1\
**Last updated:** [April 3, 2024, 10:17pm UTC](https://discourse.holoviz.org/t/linked-plots-with-plotly-not-working/7065 "2024-04-03T22:17:44Z")

</div>

I was following the example for What is a Link? and noticed that this kind of linking does not work with the Plotly backend. from holoviews.plotting.links import DataLink from holoviews import opts import holoviews as h…

---

## [How to create a new plot type (with Plotly)?](https://discourse.holoviz.org/t/how-to-create-a-new-plot-type-with-plotly/7066)

<div class="topic-metadata">

**Author:** [@banesullivan-kb](https://discourse.holoviz.org/u/banesullivan-kb)\
**Replies:** 0\
**Last updated:** [April 3, 2024, 9:36pm UTC](https://discourse.holoviz.org/t/how-to-create-a-new-plot-type-with-plotly/7066 "2024-04-03T21:36:40Z")

</div>

I’m curious about how I might be able to create a new HoloViews plot type for a custom Plotly figure. I’m trying to do something a bit unique and would appreciate any feedback or alternative approaches people may have. …

---

## [Can you use multiple backends at the same time?](https://discourse.holoviz.org/t/can-you-use-multiple-backends-at-the-same-time/642)

<div class="topic-metadata">

**Author:** [@analog-cbarber](https://discourse.holoviz.org/u/analog-cbarber)\
**Replies:** 4\
**Last updated:** [March 23, 2024, 10:25am UTC](https://discourse.holoviz.org/t/can-you-use-multiple-backends-at-the-same-time/642 "2024-03-23T10:25:12Z")

</div>

Is it possible to use two backends within the same HoloViews application or do all the elements have to use the same backend? I would like to use bokeh for some views but plotly (or some other backend) for others. Is th…

---

## [Hvplot Explorer doesn't work with matplotlib and plotly backends for xarray with time dimension](https://discourse.holoviz.org/t/hvplot-explorer-doesnt-work-with-matplotlib-and-plotly-backends-for-xarray-with-time-dimension/6885)

<div class="topic-metadata">

**Author:** [@pedroasmribeiro](https://discourse.holoviz.org/u/pedroasmribeiro)\
**Replies:** 2\
**Last updated:** [February 22, 2024, 7:12pm UTC](https://discourse.holoviz.org/t/hvplot-explorer-doesnt-work-with-matplotlib-and-plotly-backends-for-xarray-with-time-dimension/6885 "2024-02-22T19:12:47Z")

</div>

When trying to use hvplot explorer with a temporal xarray.DataArray like da.hvplot.explorer() with alternative backends like matplotlib and plotly, with gives error: File ~/.local/lib/python3.8/site-packages/holoviews/p…

---

## [Configure Plotly toImageButtonOptions when using panel.interact](https://discourse.holoviz.org/t/configure-plotly-toimagebuttonoptions-when-using-panel-interact/6777)

<div class="topic-metadata">

**Author:** [@FredDuj](https://discourse.holoviz.org/u/FredDuj)\
**Replies:** 0\
**Last updated:** [January 25, 2024, 3:59pm UTC](https://discourse.holoviz.org/t/configure-plotly-toimagebuttonoptions-when-using-panel-interact/6777 "2024-01-25T15:59:58Z")

</div>

I am trying to improve the quality (resolution) of a plotly plot when using panel.interactive (both in Jupyter and when saved as a file). I am able to improve the quality when using plotly directly with a ‘config’ given …

---

## [Unexpected(?) difference in displaying go.Bar and go.Pie](https://discourse.holoviz.org/t/unexpected-difference-in-displaying-go-bar-and-go-pie/6629)

<div class="topic-metadata">

**Author:** [@jvkloc](https://discourse.holoviz.org/u/jvkloc)\
**Replies:** 2\
**Last updated:** [December 21, 2023, 7:36pm UTC](https://discourse.holoviz.org/t/unexpected-difference-in-displaying-go-bar-and-go-pie/6629 "2023-12-21T19:36:41Z")

</div>

I have an app which displays both go.Bar and go.Pie objects. However, go.Pie has less user options (see the pictures’ upper right corners below) than go.Bar and the title is small. The title seems to be also a bit off fr…

---

## [How to update a Python class instance plot attribute from button callback?](https://discourse.holoviz.org/t/how-to-update-a-python-class-instance-plot-attribute-from-button-callback/6481)

<div class="topic-metadata">

**Author:** [@jvkloc](https://discourse.holoviz.org/u/jvkloc)\
**Replies:** 1\
**Last updated:** [November 29, 2023, 4:42pm UTC](https://discourse.holoviz.org/t/how-to-update-a-python-class-instance-plot-attribute-from-button-callback/6481 "2023-11-29T16:42:06Z")

</div>

I’m trying to update a plot from button callback. The callback supposedly works according to my test prints but the plot in the served app is not updated. How to go about updating the plot also to the app and not only to…

---

## [Hvplot.render control colors of curves and scatters](https://discourse.holoviz.org/t/hvplot-render-control-colors-of-curves-and-scatters/6460)

<div class="topic-metadata">

**Author:** [@StuckDuckF](https://discourse.holoviz.org/u/StuckDuckF)\
**Replies:** 0\
**Last updated:** [November 24, 2023, 2:36pm UTC](https://discourse.holoviz.org/t/hvplot-render-control-colors-of-curves-and-scatters/6460 "2023-11-24T14:36:55Z")

</div>

I am using hvplot.render to render a couple of Holoviews scatter and curve elements as a Plotly figure, but I can not control the colors or shapes of the Plotly plot. All I want is the ability to determine the color of …

---

## [Receive an error when trying to select data with Plotly](https://discourse.holoviz.org/t/receive-an-error-when-trying-to-select-data-with-plotly/6359)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.holoviz.org/u/Olivier)\
**Replies:** 0\
**Last updated:** [November 8, 2023, 10:04am UTC](https://discourse.holoviz.org/t/receive-an-error-when-trying-to-select-data-with-plotly/6359 "2023-11-08T10:04:58Z")

</div>

Hello This is my first post here, so my apologies if I’m not thorough enough in my explanation. I’ve recently started using Panel for my company to create a webapp that works together with a framework that has been dev…

---

## [Plotly click\_data with watch not working](https://discourse.holoviz.org/t/plotly-click-data-with-watch-not-working/6320)

<div class="topic-metadata">

**Author:** [@keyur\_ds](https://discourse.holoviz.org/u/keyur_ds)\
**Replies:** 0\
**Last updated:** [November 1, 2023, 10:23am UTC](https://discourse.holoviz.org/t/plotly-click-data-with-watch-not-working/6320 "2023-11-01T10:23:03Z")

</div>

I’ve a below code in which I show plotly bar chart. Upon click on bar, I want to display which bar user has selected but the code I’ve written is not working. Please help. import panel as pn import param import pandas a…

---

## [Bind selected\_data param from plotly chart](https://discourse.holoviz.org/t/bind-selected-data-param-from-plotly-chart/5315)

<div class="topic-metadata">

**Author:** [@Variably9781](https://discourse.holoviz.org/u/Variably9781)\
**Replies:** 2\
**Last updated:** [October 11, 2023, 1:45pm UTC](https://discourse.holoviz.org/t/bind-selected-data-param-from-plotly-chart/5315 "2023-10-11T13:45:55Z")

</div>

I am trying to access plotly’s box select values with python through the panel.bind function, but for some reason, the selected\_data param does not appear to be updating. Here is an example: import pandas as pd import p…

---

## [Code review for a Tap/Hover/Plot Map Working example](https://discourse.holoviz.org/t/code-review-for-a-tap-hover-plot-map-working-example/5807)

<div class="topic-metadata">

**Author:** [@StuckDuckF](https://discourse.holoviz.org/u/StuckDuckF)\
**Replies:** 0\
**Last updated:** [August 1, 2023, 1:32pm UTC](https://discourse.holoviz.org/t/code-review-for-a-tap-hover-plot-map-working-example/5807 "2023-08-01T13:32:36Z")

</div>

I have made an app that I have working but I need some Panel 1.x expertise to refactor and understand the best way to hook everything together and have it work. The flow should be : Enter paths to NetCDFs Choose some …

---

## [How can I specify bar colour using plotly as backend?](https://discourse.holoviz.org/t/how-can-i-specify-bar-colour-using-plotly-as-backend/2000)

<div class="topic-metadata">

**Author:** [@kamransoomro84](https://discourse.holoviz.org/u/kamransoomro84)\
**Replies:** 5\
**Last updated:** [April 13, 2023, 4:01pm UTC](https://discourse.holoviz.org/t/how-can-i-specify-bar-colour-using-plotly-as-backend/2000 "2023-04-13T16:01:09Z")

</div>

I’m trying to use the plotly backend to make some bar charts and I want to specify the colour of the bars. But when I do that I get the following error; Option 'color' for Bars type not valid for selected backend ('plot…

---

## [Embed plotly Sunburst](https://discourse.holoviz.org/t/embed-plotly-sunburst/4894)

<div class="topic-metadata">

**Author:** [@Skealz](https://discourse.holoviz.org/u/Skealz)\
**Replies:** 1\
**Last updated:** [February 1, 2023, 6:20pm UTC](https://discourse.holoviz.org/t/embed-plotly-sunburst/4894 "2023-02-01T18:20:13Z")

</div>

Hi, I am trying to embed a plotly sunburst plot into an HTML page. For information, I have no problem embedding holoviews (with bokeh backend) plots. When I use the code that follows, the HTML page renders without the…

---

## [Plotly Backend Hover Data](https://discourse.holoviz.org/t/plotly-backend-hover-data/3421)

<div class="topic-metadata">

**Author:** [@flavorless\_neutrino](https://discourse.holoviz.org/u/flavorless_neutrino)\
**Replies:** 1\
**Last updated:** [December 23, 2022, 4:44pm UTC](https://discourse.holoviz.org/t/plotly-backend-hover-data/3421 "2022-12-23T16:44:50Z")

</div>

Hey guys, I was wondering if there is a way to customize the hover data on the Plotly backend. I want to add more information to data box when hovering over a point. Thanks

---

## [Why is updating Plotly traces so slow?](https://discourse.holoviz.org/t/why-is-updating-plotly-traces-so-slow/4592)

<div class="topic-metadata">

**Author:** [@Lexoka](https://discourse.holoviz.org/u/Lexoka)\
**Replies:** 5\
**Last updated:** [November 22, 2022, 8:43pm UTC](https://discourse.holoviz.org/t/why-is-updating-plotly-traces-so-slow/4592 "2022-11-22T20:43:10Z")

</div>

Hi, I have a bunch of Plotly plots and subplots (about 40 in total) that I need to update when the user clicks a button. Specifically, there’s one trace where I need to add a point every time the button is clicked, and …

---

## [Hv.help incomplete](https://discourse.holoviz.org/t/hv-help-incomplete/4081)

<div class="topic-metadata">

**Author:** [@Jan](https://discourse.holoviz.org/u/Jan)\
**Replies:** 6\
**Last updated:** [August 8, 2022, 8:13pm UTC](https://discourse.holoviz.org/t/hv-help-incomplete/4081 "2022-08-08T20:13:13Z")

</div>

I am not sure if this is something that should go into the holoviews issues as a bug report, so I am reporting it here. The function hv.help does not list the valid option legend\_opts. This is similar to colorbar\_opts a…

---

## [Does HvPlot support Plotly for interactive dataframes?](https://discourse.holoviz.org/t/does-hvplot-support-plotly-for-interactive-dataframes/3915)

<div class="topic-metadata">

**Author:** [@hollowheights](https://discourse.holoviz.org/u/hollowheights)\
**Replies:** 4\
**Last updated:** [July 24, 2022, 5:52pm UTC](https://discourse.holoviz.org/t/does-hvplot-support-plotly-for-interactive-dataframes/3915 "2022-07-24T17:52:23Z")

</div>

I usually use Plotly and therefore would prefer to stick to that. But being new to HvPlot I run into obstacles when I try to plot with the setting: hvplot.extension(‘plotly’) For instance when I try to do: ifig = ipip…

---

## [Plotly Sizing Issue](https://discourse.holoviz.org/t/plotly-sizing-issue/3755)

<div class="topic-metadata">

**Author:** [@CmpCtrl](https://discourse.holoviz.org/u/CmpCtrl)\
**Replies:** 0\
**Last updated:** [May 27, 2022, 4:31pm UTC](https://discourse.holoviz.org/t/plotly-sizing-issue/3755 "2022-05-27T16:31:21Z")

</div>

Has anyone noticed that when a plotly plot is allowed to autosize it doesnt fit within its container correctly? I noticed this since i am including it in a pn.Tabs element and drawing a border around the container. I am …

---

## [Question: accessing pn.panel.plotly click\_data to feed to widgets/other functions](https://discourse.holoviz.org/t/question-accessing-pn-panel-plotly-click-data-to-feed-to-widgets-other-functions/3683)

<div class="topic-metadata">

**Author:** [@Behrooz](https://discourse.holoviz.org/u/Behrooz)\
**Replies:** 2\
**Last updated:** [May 9, 2022, 7:33am UTC](https://discourse.holoviz.org/t/question-accessing-pn-panel-plotly-click-data-to-feed-to-widgets-other-functions/3683 "2022-05-09T07:33:59Z")

</div>

Hello, I have managed to find how to access the specific datapoint attribute from a pn.panel.plotly graph and can display a text file that shows a desired attribute when a point is clicked on in my plotly sctterplot. I …

---

## [How do I link Plotly plots using click\_data?](https://discourse.holoviz.org/t/how-do-i-link-plotly-plots-using-click-data/3668)

<div class="topic-metadata">

**Author:** [@erin](https://discourse.holoviz.org/u/erin)\
**Replies:** 1\
**Last updated:** [May 7, 2022, 9:45am UTC](https://discourse.holoviz.org/t/how-do-i-link-plotly-plots-using-click-data/3668 "2022-05-07T09:45:15Z")

</div>

I have a use case where I want to display 3 plots. First plot is a global view that shows categories. Second plot is a local view that shows each data point within the first plot selection. Third plot is a local view of…

---

## [Plotly hv.Surface camera\_position does not appear to work?](https://discourse.holoviz.org/t/plotly-hv-surface-camera-position-does-not-appear-to-work/3659)

<div class="topic-metadata">

**Author:** [@ea42gh](https://discourse.holoviz.org/u/ea42gh)\
**Replies:** 0\
**Last updated:** [May 1, 2022, 8:35pm UTC](https://discourse.holoviz.org/t/plotly-hv-surface-camera-position-does-not-appear-to-work/3659 "2022-05-01T20:35:00Z")

</div>

Does anybody have a working example using the camera parameters of hv.Surface? I could not get them to work and fell back to a panel plotly pane. The code I used is on the hv branch of

---

## [Lack of usability holoviews plotly](https://discourse.holoviz.org/t/lack-of-usability-holoviews-plotly/3329)

<div class="topic-metadata">

**Author:** [@beceti](https://discourse.holoviz.org/u/beceti)\
**Replies:** 0\
**Last updated:** [February 1, 2022, 10:35am UTC](https://discourse.holoviz.org/t/lack-of-usability-holoviews-plotly/3329 "2022-02-01T10:35:19Z")

</div>

Hi, I use holoviews with backend plotly to rotate 3D plots like Surface or Scatter3D (beside this I also use Curve, Histogram etc). However, I think the power of plotly is very weak in holoviews (changing color of Surfa…

[Next page](https://discourse.holoviz.org/tag/plotly/31.md?match_all_tags=true&page=1&tags%5B%5D=plotly)
