All Questions
Tagged with plotly-python or plotly
15,650 questions
2
votes
1
answer
58
views
How to remove column name from facet titles in Plotly Express histogram
import plotly.express as px
import pandas as pd
df = pd.DataFrame({
"country": ['Poland', 'Poland', 'Poland',
'Germany', 'Germany', 'Germany',
'France', '...
0
votes
0
answers
28
views
Plotly Choropleth Map: Data points not showing up randomly in the map
I am trying to create an animated choropleth map using Plotly that shows when certain countries legalised a policy. So basically, the map is animated to show each year and countries are coloured ...
3
votes
1
answer
66
views
Updating a Plotly imshow image from a dropdown menu
I am trying to use a dropdown menu in Plotly to update an image created using imshow. It renders fine initially, but using the dropdown to select new entries just gives me an empty array image. I'm a ...
-2
votes
1
answer
67
views
Dash Plotly charts axis labels shows scientific values for small numbers [closed]
How can I avoid showing scientific values for Y axis in Dash Plotly?
Scientific values for Y axis there marked below:
As you can see here in below, I already added following rows in Y axis ...
1
vote
1
answer
54
views
Plotly Express facets show no lines when setting x-axis range and custom tick labels
I have a dataframe with these columns:
id_pair (pair of sensors)
rssi_mean (detection strength)
contact_day (day of the detection as string, e.g. 'Monday')
study_week (week of the detection as ...
1
vote
0
answers
81
views
Event handler not firing on Plotly Bar Chart
I am trying to trigger a Python backend event when a user clicks on a bar in a px.bar chart.
I just want to print a simple "handler" message to the terminal to verify that the click event is ...
2
votes
2
answers
118
views
facet bold titles in ggplotly
I would like to have the strip text of a facet wrap in bold with ggplotly. Unfortunately, when we convert the ggplot with bold titles to ggplotly, the labels aren't bold anymore. Here is simple ...
0
votes
1
answer
78
views
Plotly, have one dropdown menu for each level in DataFrame multi-index
I want to make one dropdown menu for each level in a multi-indexed dataframe (rows are observations, columns are the elements of selection).
It's quite straightforward to loop over each multi-index ...
1
vote
1
answer
183
views
Making a interactive wordcloud in Dash + 2 different wordclouds for different clicks
I'm trying to make an interactive wordcloud in Dash. Is it even possible?
Also, I'm trying to make two different wordclouds, with each click being a different wordcloud:
1 click -> shows one ...
1
vote
2
answers
192
views
Adjust vertical line based on maximum value in graph plotly
I'm creating a barplot in plotly where I want to add a vertical line. In the plot we initially only show one selected item from the legend. Now I want to have the vertical be the maximum height of the ...
1
vote
1
answer
93
views
In R plotly how do you stop the legend order reversing when using fill = "tonexty"
When creating a line plot and filling between two lines using the fill = "tonexty" option, the legend order is reversed by default. How do you stop this happening?
This problem has been ...
2
votes
0
answers
98
views
Dash DataTable stays empty when layout is injected via Tabs callback (callbacks not firing / data not set)
I’m building a Dash app with dcc.Tabs. The tab content is rendered via a “router” callback that returns a layout object. Inside that layout I have a dash_table.DataTable that should be filled by a ...
2
votes
1
answer
73
views
How can I keep my zoom state while updating a plotly graph?
import plotly.graph_objects as go
import solara as sol
@sol.component
def Plot():
ui_state = UIState()
analyasis_view = AnalysisView()
print("Rendering Plot Component")
print(...
0
votes
1
answer
79
views
Dash Plotly Flask Application randomly hangs for 1 minute
I have build a simple application with two pages (a multi-page Dash app) which I am running locally using Gunicorn with two workers and four threads. It's a simple dashboard application.
When I ...
0
votes
0
answers
94
views
Apply dash-bootstrap theme to dcc components
I want the dash.dcc.Dropdown to look like the dbc.DropdownMenu in the bootstrap site:
This is my sample code:
# -*- coding: utf-8 -*-
from dash import Dash, dcc, html
import dash_bootstrap_components ...