Skip to main content

All Questions

Tagged with
0 votes
1 answer
1k views

Fixed margin for legend in Plotly Python

I have a dynamic size of plot in plotly, depending on number of bars: I use such parametrization for legend position: fig.update_layout( bargap=0.1, barmode='stack', yaxis={ ...
Владислав Черкасов's user avatar
0 votes
1 answer
168 views

How to Convert Color-Code Legends from Logarithmic Scale to Actual Values?

What is the best way to display actual vallues in color-code legend when using logarithmic scale color coding in plotly.figure_factory.create_choropleth? Here is the sample code: import plotly....
Rotail's user avatar
  • 1,061
18 votes
1 answer
29k views

Sharing same legends for subplots in plotly

I've two plots created in the same figure using subplots in plotly. import plotly.graph_objects as go import numpy as np import pandas as pd from plotly.subplots import make_subplots df = pd....
Natasha's user avatar
  • 1,431
4 votes
1 answer
1k views

Filter legend in linked views with plotly

I am working on a linked plot (similar to The SharedData plot pipeline from Carson Sievert in plotly for R. The plot shows a legend for one item I currently hover over. However, right now the legend ...
Philipp Gärtner's user avatar
0 votes
1 answer
586 views

Multiple Y-Axis Legend on single data with plotly.js

I'am willing to display two legends (relative and absolute scales) on a graphic using plotly js. To do so I may use this piece of code: var trace1 = { x: [1, 2, 3], y: [40, 50, 60], name: '...
Trolldejo's user avatar
  • 466
3 votes
1 answer
2k views

Making a Legend in a Scattergeo Plot in Plotly

I'm plotting some data similar to the first example found here (the US airports map). However, rather than plotting a scale I'm plotting binary features (let's say one color is over 15k flights and ...
acme_student17's user avatar