94 questions
1
vote
1
answer
44
views
Is there a way to overlay scatterplot over grouped boxplots so they aren't offset using plotly graph_objects?
I'm trying to get the scatter plots to lie ontop of their respective boxplots to act as outlier points. Since plotly's graph_object.box doesn't have a method of inputting precalculated outliers, I've ...
0
votes
1
answer
40
views
How to make bars more visible while using plotly?
I am trying to plot some data using plotly graph_objects. X axis has dates as categories and Y axis has depth values. I realized my graph becomes less visible when there is a relevant quantity of data....
0
votes
1
answer
61
views
How to create synchronized Plotly subplots with fixed node positions in a network graph and cumulative time-series data in a line plot?
I'm trying to build a synchronized visualization using Plotly with two subplots: a network graph below and a line plot above. Each node in the network graph represents an entity in a fixed 2D space, ...
3
votes
0
answers
42
views
How to assign colors in go.Cone based on a single column of a DataFrame instead of the total magnitude calculated by default?
I’m working with Plotly’s go.Cone function to visualize 3D data. In my plot, I’m representing cones with positions (x, y, z) and directions (u, v, w), where the components u, v, and w correspond to ...
0
votes
1
answer
53
views
incorrect plotly graph object output error
I am not sure how to address this. i tried searching but not did not find much help.
here is my code. I first ran this code with csv file and i was getting the same error. Then i tried with the ...
0
votes
0
answers
77
views
save plotly graph objects as PNG
I am trying to save a graph objects fig as a PNG (or any other format) but it seems to hang and not do anything
I have tried
import plotly.graph_objects as go
fig = go.Figure(
data=[go.Bar(x=[1, ...
0
votes
0
answers
47
views
Plotly stacked bar chart in subplot -- visually differentiate the "stacked" values inside the subplot
Assume we're using the plotly px.data.iris() dataset to generate a stacked bar chart. This is pretty straight-forward using plotly express:
import plotly.express as px
df = px.data.iris()
df = df[[&...
0
votes
1
answer
1k
views
How to change the size and spacing of Plotly's sublopts?
How is it possible to manipulate the spacing between rows(e.g. increasing the space between fist two rows and final two rows) and the size of charts inside the figure (e.g. making pie chart bigger)?
...
0
votes
1
answer
89
views
Empty page when generating sunburst chart
I was trying to write a function to generate sunburst chart, but the figure shows a blank page. There are no error message. Then I was testing with simple sample data (see below) but it is still blank....
3
votes
0
answers
154
views
How to group data and also specify the percentiles in a go.box?
I am trying to achieve a plotly Figure like the following furthier down but instead of the whiskers to show the min and max, I want the percentiles 10th and 90th and I cannot figure a way to make it ...
3
votes
2
answers
1k
views
Plotly - multiple (three) labels on x axis
I have a dataset with columns for week, month and year, and I would like to plot variable in time using week, month and year as labels.
Can something like this be done with plotly in python?
I am ...
1
vote
1
answer
80
views
How to overlap “map A made by plotly.express with animation” on top of “map B made by plotly.graph_objects” and maintain the animation on map A?
As shown below, map A is created using plotly.express and map B using plotly.graph_objects.'
I’d like to ask to align and overlap map A on top of map B while keeping the animation on map A.
map A (...
0
votes
1
answer
101
views
How to update axes when value on dropdown changes with go.Bar() (plotly)?
I trying to update the xaxis_title_text (update_layout) and the tickvals and ticktext (update_xaxes) when the dropdown value changes.
I have tried to adapt the Plotly examples (link) and this answer, ...
0
votes
0
answers
58
views
Want to display q1, q3 by interpolation='linear' only in case of violin & box plotting
I want to display q1, q3 using concept of interpolation='linear' only in case of violin & box plots while using plotly.graph_objects.Box or Violin. I observed by default q1 and q3 are set using ...
1
vote
0
answers
147
views
How to control order of links in poltly sankey diagram from Python
Looking for any pointers or examples on fine control of link order in sankey diagrams.
I've followed the examples from the plotly page. I can see that there is some ability to control link order with ...