Skip to main content

All Questions

1 vote
1 answer
29 views

Showing or saving only the legend of a plotly figure

Given a plotly figure with traces and a legend, is there a way to only show the legend without any of the plot content? My use case for this: I'm exporting several images with the same legend. Instead ...
william_grisaitis's user avatar
1 vote
1 answer
80 views

plotly title_side position not working properly

I'm greenhand with Python plots but I was trying to do a PCA for different human populations; while I'm still working on the actual data, the main issue I'm having with visualizations in Python, as ...
Matteo's user avatar
  • 209
0 votes
1 answer
76 views

Related to legends for subplots in plotly

I have created the 4 subplots with the legends showing on right sideWhen I create subplots in plotly , legends are created either in right side or in the bottom of all subplots. But how can I get ...
Rajesh Koyi's user avatar
1 vote
0 answers
201 views

Make legend horizontal and reduce the size in Plotly Dash

I am trying to make the attached legend horizontal and smaller in size but it's not working. Also if you see the Plot is hidden below the legend. (Some states are not visible) How can I set that to ...
Himanshu Joshi's user avatar
4 votes
2 answers
14k views

How can I put different legends to subplots in plotly?

I am still designing what kind of plot with subplots I want to do but when we see the example in the documentation Multiple Subplots with Titles we have from plotly.subplots import make_subplots ...
KansaiRobot's user avatar
  • 9,103
0 votes
1 answer
463 views

How can I fix this legend labels issue in plotly (Python)?

Heres the code for Line Plot with column encoding color from website: plotly. import plotly.express as px df = px.data.gapminder().query("continent=='Oceania'") fig = px.line(df, x="...
Girish Kumar Chandora's user avatar
0 votes
0 answers
115 views

Is there a way to breakdown a legend of plotly python for combined chart?

As in subject of my question. I was trying few approaches to solve this issue, but I have run out of ideas. How can I display in legend 12 small rectangles with symbology of individual month (and ...
Jaro's user avatar
  • 1
1 vote
1 answer
1k views

Remove legend(s) from contour plots in plotly for R

This should be easy to do, but the solution eludes me. How do I remove the legend in a contour plot made with plotly for R? This doesn't work for me. # Reproducible example p <- plot_ly(mtcars, x = ...
Dr. Andi Lowe's user avatar
0 votes
0 answers
729 views

Hide a specific legend in scale_color_manual() when using plotly() at the end

I have a data frame df.europeCoords which looks like this: And I plot a Europe map with the following code: ## Plot the map: ## p <- ggplot(data = df.europeCoords, aes(x = longitude, y = ...
Miko's user avatar
  • 486