Sorry beforehand for the long post. I'm new to python and to plotly, so please bear with me.
I'm trying to make a scatterplot with a trendline to show me the legend of the plot including the regression parameters but for some reason I can't…
I am playing with examples from plotly.express piechart help page and trying to add an extra element iso_num to the hover_data property (iso_num is an int64 column in the gapminder dataframe)
import plotly.express as px
df =…
I need to make a plotly bar chart with bars ordered by value in descending order.
I first order the dataframe by value in descending order. Then I use plotly.express to generate interactive bar chart. However, I found the bars are still in ascending…
Can I set a parameter for plotly.graph_objs.go.Scatter3d to either make the graph full screen or to set the save resolution higher? The current resolution that is being saved when using the built in save plot function is 983x525. I would like to at…
I want to use plotly to display a graph only after a button is clicked but am not sure how to make this work. My figure is stored in the following code bit
fig1 = go.Figure(data=plot_data, layout=plot_layout)
I then define my app layout with…
I need to create a plot on plotly with a newline. Preferably the text on the top is larger than the second line, but not necessary.
fig.update_layout(
title=go.layout.Title(
text=title,
xref="paper",
x=0.5,
),
For…
I am unsure how to customize scatterplot marker styles in Plotly scatterplots.
Specifically, I have a column predictions that is 0 or 1 (1 represents an unexpected value) and even though I used the symbol parameter in px.scatter_3d to indicate the…
I'd like to visualize a 20x20 matrix, where top left point is (-10, 9) and lower right point is (9, -10). So the x is increasing from left to right and y is decreasing from top to bottom. So my idea was to pass x labels as a list: [-10, -9 ... 9, 9]…
I would like to create a Sunburst chart, corresponding to the following:
Where:
B is 70% of A
C is 20% of B
D is 50% of B
I looked at the plotly documentation but the examples provided only used either use a dataset or a values argument which I…
Is there a way to make the links in a Plotly Sankey diagram have a color gradient between the source node color and the end node color? This image is taken from a page linked by the Plotly documentation.
I have seen some discussion on GitHub about…
I have never used plotly before, and I have been trying to export a sample image code to png. I have installed plotly and kaleido and ran the code on python 3, but nothing happens.
#Here is the code:
import plotly.express as px
import numpy as np
…
I would like to create a colormap with n colors for a plotly express plot in Python, which should fade from one color into another.
All the default colormaps only have 10 discrete values, but I am looking for a colormap with n > 10 discrete…
This is not a duplicate of this.
Adding the makes sure the trace# is removed from the graph. But is there a way I could make that the default setting?
I am creating a custom plotly theme and would like it to be the default setting,…