Questions tagged [plotly.graph-objects]
88 questions
1
vote
1 answer
Plotly candlesticks customize color
I found a same topic with a solution here
Custom color of Plotly candlesticks
However, using that solution my output graph is separated into "three zones" based on timestamp. For example, I got a graph begins with the first range include…

neikel
- 95
- 1
- 9
1
vote
1 answer
How to change the range of theta for each plotly scatterpolar category
I am currently using Plotly's scatterpolar module to create a radar chart. I am trying to visualize the statistical categories for all 5 basketball statistics (points, assists, rebounds, steals, and blocks). The problem is that the range for every…

Justin Han
- 13
- 3
1
vote
1 answer
Is there a way to have a hovertext on a line between two lon, lat pairs with Scattergeo
I am drawing an airline route map and would like to have a hovertext appear along the line between an origin and destination. e.g. a curved line connecting JFK with SFO should show a hovertext at the line showing "JFK-SFO/38 flights"

bananaman
- 39
- 3
1
vote
1 answer
I can't seem to get plotly to display multiple graphs
I want to create a nice graph in python, so I used plotly to create a graph, but I get an error.
Maybe because I'm new to plotly, I don't understand the error in this code.
The only thing I can tell is that my code is wrong.
I want to display…

18aaa
- 35
- 1
- 7
1
vote
1 answer
How to update plotly graph title using dropdown?
I would like the plotly graph title to change dynamically based on the selected value in the dropdown.
The below code works fine to update the graph itself but it doesn't change the title.
I have also tried {'layout_title_text': 'Title 1'} instead…

user15177517
- 33
- 6
1
vote
0 answers
Change trace (go.Scattermapbox) style on hover
I'm trying to draw a map with plotly,
Following this example: https://plotly.com/python/lines-on-mapbox/#lines-on-mapbox-maps-using-scattermapbox-traces
Is there a way to change trace's style of the go.Scattermapbox object on hover (for example…

nurasaki
- 89
- 1
- 9
1
vote
1 answer
Plotly Gauge - Possible to turn off Value in center?
I have a gauge plot that I have produced using the following code. Is it possible to hide the value 74 shown, but still use it as the driver of the bar on the gauge? I want to actually use a text string to "categorize", like a grade. Thus 74 would…

KMarieZ84
- 25
- 4
1
vote
1 answer
Splitting a dataframe and plotting with different line styles in Plotly
I'm new to plotly, and to pandas, and I am attempting to find an elegant solution since I believe I was either not using groupby efficiently in plotly or maybe my data is somehow stacked which is preventing me from visualizing it.
To make a test…

Lani
- 107
- 1
- 1
- 11
1
vote
1 answer
Plotting multiple meshes on 1 figure with
Below is code I use to plot a 3D mesh. Is there a way to plot multiple meshes on 1 graph? For this example, I would want fig1 and fig2 to be shown on the same graph/figure.
import plotly.graph_objects as go
import numpy as np
# Download data set…

Gerhardt Schmidt
- 65
- 6
1
vote
2 answers
plotly.graph_objects Choropleth Map subplots with shared colorscale
I'm new to python and plotly.graph_objects. I created some maps similar to the example found here: United States Choropleth Map
I'd like to combine the maps into one figure with a common color scale. I've looked at lots of examples of people using…

JSWilson
- 1,113
- 1
- 11
- 28
0
votes
0 answers
Plolty Scattermapbox animation
Plotly animation not working with Scattermapbox. The following code is heavily based on https://chart-studio.plotly.com/~empet/14825/scattermapbox-animation-forum-question/#/. The Play button does activate the slider but the graph is stuck on the…

f37
- 1
0
votes
1 answer
How do I get the markers in my scatterplot to be connected by lines only along one axis?
I have been trying to create a scatter plot using the plotly package, but I keep running into a weird problem with how the plot is formatted. The plot I am trying to make has a categorical X axis and a continuous Y axis. What I want is for markers…

Bob McBobson
- 743
- 1
- 9
- 29
0
votes
0 answers
Plotly Table ColumnWidth not making columns wider
Plotly docs says I can use go.Table and use key of columnwidth and an array with the widths. Well this isn't doing much because my columns are still cutoff and cannot be made wide enough.
Any ideas on how to ensure the columns match the header and…

Michael Paccione
- 2,467
- 6
- 39
- 74
0
votes
1 answer
How to specify discrete color of markers in Plotly.graph_objects?
After a lot of searching, I still have NOT found how to specify discrete color mapping for markers in a scatter figure that created by plotly.graph_objects (instead of plotly.express).
There are some docs about specifying discrete color mapping of…

Leon
- 1,489
- 1
- 12
- 31
0
votes
0 answers
plotly.graph_objects.Figure.show crashes in VSCode
I am runing the following code with Python 3.9.7 and plotly 5.14.1, in a regular python file (not a notebook), in VSCode:
import plotly.graph_objects as go
import plotly.io as pio
print(pio.renderers)
# defining vertices
V = [0, 1, 2, 3]
#…

27636
- 35
- 1
- 4