I try to synchronize zoom and pan between two graphs in a dashboard (dash + plotly). I obtain strange behavior when I zoom on a graph, the second graph does not update. I need to zoom on the second graph to make both graphs update but not with the same zoom nor the same location on the graphs. Furthermore the
Tag: plotly
Change title font size in Plotly
I’m trying to update the title font size on my plot using the Plotly library, but it doesn’t works. This is how I defined my layout: It correctly set the the title and the shapes, but not the font size. Answer I think you can set the title font size using a dictionary:
How to iterate over scatter data?
I am trying to plot a time series on a scatterplot with dropdown boxes using Plotly express. I have 2 traces filtered on some unique values in the “name” column of my data. I’m using the ‘color’ function on px.scatter to filter by this column. Since the traces have the same name, they are duplicated on the plot and I
Scatterplot with plotly vs pyplot / different approach in data table needed?
I’m trying to create a scatterplot in plotly, but have some difficulties. I think I need to rearrange my data table to be able to work with it, but am note sure. This is how my data table looks: table structure The “Average Price” is the “real” data and the prices in the “Predictions” column are what my model predicted.
How to format a number from thousands to K style in plotly
I want to change the format of y-axis from thousands to thousands in K format in plotly python. Answer Since you didn’t provide any data, or even explain what you want to show exactly on the y-axis, I will answer with what should work: If you want regularly-spaced tick values for the y-axis, you can either pass a list of
Dash bootstrap how to split the app layout
I am having some trouble to achieve the layout in the image below. What is left is for me is to add those 3 graphs that I included in blue. So far, I have included everything in 1 row using up all 12 columns: Col 1: with dropdowns and checklists → width=2 Col 2 → 12: all those cards/boxes on
How to plot a horizontal Stacked bar plot using Plotly-Python?
I’m trying to plot the below summary metric plot using plotly. data So far, I’m able to plot this I’m unable to add Model Names to the plot. How add Model column as Legend and add all model values into the plot? Answer shape the data frame first df2 = df.set_index(“Model”).unstack().to_frame().reset_index() then it’s a simple case of using Plotly Express
How to plot spheres in 3d with plotly (or another library)?
I am struggling with plotting something, that I thought should be really simple. I have a dataframe/table df that contains the coordinates x,y,z of spheres. Additionally, in a separate column, it contains the radius of these spheres. How can I make with plotly a 3d plot of the spheres in space with their correct radius being used? The closest I
How to change the x-axis and y-axis labels in plotly?
How can I change the x and y-axis labels in plotly because in matplotlib, I can simply use plt.xlabel but I am unable to do that in plotly. By using this code in a dataframe: I get this output: In this X and Y axis are labeled as X and Y how can I change the name of X and
Add a number in textbox using add_annotations plotly python
How should I set up text in order to get “r-square: 0.90”? Set up: Where: but it is not working. Answer You can use an f-string instead. For example, here is what I get when I use the tips dataset: