Category "plotly"

Python Jupyter Notebook: Embed an interactive plot in the _repr_html_() method of a class

I am trying to embed an interactive graph in the _repr_html_() method of a class C. What I have tried so far does not seem to be working in my Jupyter Notebook.

Python Plotly Subplots with an x shared axis and multiple y axis

I would like to know if it is possible to create subplots with Plotly with an x shared axis and multiple y axis. This what I want to do: where '##' means the pl

Is there a way to extract data (maybe in csv/excel formal) from a Plotly html figure?

I have a Plotly heatmap graph only in html format. But I need the data used for it for my analysis. Is there a python function which I can use or any server whe

How to resize plot_ly plot in R

I have been trying to plot a surface from the following data z = structure(c(-0.901395069908367, -0.889270928722939, -0.860498522734513, -0.81162341264254, -0.

Change color of y axis label in plotly

I draw a figure in plotly (python). To change the label color of y axis in the plot I used the code fig.update_yaxes(color='white') and fig.update_layout(font_c

Surface in plotly does not cover all data, leaving a gap between surface and highlight

I am using a plotly surface plot with data that has some missing values. As you can see in the example below, I am using highlight lines to show the surface doe

Plotly R: highlight the hovered label in pie chart and grey out the other labels

Dataframe: df2 = data.frame(value = c(9, 2, 7, 3, 6), key = c('ar', 'or', 'br', 'gt', 'ko')) And this is the code to generate the pie chart: d

How to hide, or at least customize colorbar in plotly scattergeo in R

I want to create a scattergeo plot with markers for capitals. These markers are sized and colored regarding database values. If I use the standard colors, every

Plotly Dash ImportError: cannot import name 'dcc' from 'dash'

I'm just trying to get the Dash tutorial up and running but every time I try to run it, copy and pasted from the documentation into my asdf.py I get the error "

Plotly R: change hoverinfo font color according to different bar colors

I have this dataframe: df2 = data.frame(value = c(9, 2, 7, 3, 6), key = c('ar', 'or', 'br', 'gt', 'ko')) And this is the code I have to genera

How to make legend items bold in plotly

I am able to bold the axis title and ticks using update_xaxes,but is there a way to do the same for the items in the legend? import plotly.express as px df = p

Plotly screenshot for big graph screenshots

actual output which is cluttered But When I click on the camera icon of plotly , I get the whole screenshot which I wanted . I have attached the screenshot of i

multiple drop down buttons for a plotly graph

I am wanting to know how to add multiple drop down buttons for a plotly graph or if it is even possible. The code that I am working with is thanks to r-beginner

How to split legend of a plotly chart when using to two y axes

I am creating a grouped bar plot using plotly. As level of my values differ I am using two y axes. I would like to split a legend (idea presented on a picture

python plotly smith chart function behaviour is different from scikit-rf

Can someone explain why this two smith chart plot function for exactly same circle of plotly and scikit-rf are so different? And how can I make plotly plot like

How to make plotly.express.line lines not to connect between one another?

I am new to plotly and I am trying to draw some roads on a map in different colors based on the traffic value. This is what I tried: fig = px.line_mapbox(lat=te

How to create plot with both vertical and horizontal spikelines in plotly?

Plotly offers the option to display a moveable horizontal or vertical "spikeline" by adding layout(hovermode = "x unified") or layout(hovermode = "y unified") (

Python Plotly image how to save image to a iobuffer and read it back

Python Matplotlib image is saved like : img = io.BytesIO() plt.savefig(img, format='png') img.seek(0) encoded = base64.b64encode(img.getvalue()) but for plotly

Datashader integration for polygons in plotly mapbox

I'm using plotly's Scattermapbox to overlay a map with a shaded image of polygons created by datashader's shade function (based on https://plotly.com/python/dat

Remove "0%" labels from a plotly pie chart in Python

I need to plot a pie chart that shows all descriptions in a legend, despite the values being zero. However, I would like also to remove the "0%"s labels from th