Questions tagged [plotly-express]

The plotly.express module (usually imported as px) contains functions that can create entire figures at once, and is referred to as Plotly Express or PX. Plotly Express is a built-in part of the plotly library, and is the recommended starting point for creating most common figures.

365 questions
0
votes
1 answer

Continuous Color Scales in Plotly -- plotly.express as px, and plotly.graph_objects as go

I am trying to control color scale in the px.scatter using color_continuous_scale='Reds' using the following code. sca = px.scatter(df_centroid_Coord, x="x", y="y", title="Southern Region Centroids", …
user13373167
0
votes
0 answers

Python Plotly.express

I have a file with lat / lon and I want to project this on a heatmap. I'm trying to do this with a density_mapbox. It works but I can't figure out how to let it soom in on Belgium. I tried zoom, but it doesn't seem to work, I still get the map of…
Tralala
  • 233
  • 2
  • 10
0
votes
1 answer

Providing a label name in plotly express

Hi I am wondering how to give a label name when using plotly express where the data is not in the form of a DataFrame. Its not possible to use the keyword argument name when using px.line. However it is a possible when using px.scatter function. As…
imantha
  • 2,676
  • 4
  • 23
  • 46
0
votes
0 answers

Capture which items are displayed on Python Plotly Express chart based on legend selection

DISTRIB_DESCRIPTION="Ubuntu 20.04.5 LTS" Streamlit, version 1.12.2 plotly==5.10.0 I have a Plotly Express px.scatter chart being generated in a Streamlit page. The different data points available to be shown are set by the color= parameter in…
RightmireM
  • 2,381
  • 2
  • 24
  • 42
0
votes
1 answer

Plotly: Sunburst plot missing sections

When plotting data using plotly.graph_object sunburst some labels are missing when compared to same data plotted with plotly.express sunburst Plot missing the outermost sections: Data is still there because when expanded it the data moves from…
mattK.PH
  • 1
  • 1
0
votes
0 answers

How to sort overlapped dots in Plotly strip plot?

I'm working on a strip plot using Plotly.express to show the number of sequences per COVID variant along the time in different countries. I would like to implement the following rule and I didn't get how to do it: When I have overlapping dots…
Joicy Xavier
  • 13
  • 1
  • 3
0
votes
1 answer

how can I make this work? (plotly-python)

I've reached a point where I don't know what else to do. I have this df dff8df !!!0 WWSF VPIP VPIP VPIP 0 52.0 38.64 38.64 38.64 1 62.0 50.00 50.00 50.00 2 73.0 56.25 56.25 56.25 3 99.0 23.08 …
0
votes
0 answers

Why is this python script dash plotly express not working showing a figure?

I'm doing a k-means, and cant manage to print a figure. why? how can I solve this? the data has 2900 rows, and all seems to be right (no errors appear) clusters=len(X) kmeans = cluster.KMeans(n_clusters=clusters, …
0
votes
1 answer

Trying to add button to re-draw Gantt chart/timeline

I'm trying to produce a Gantt-type timeline chart with additional controls (buttons, etc) to re-draw the chart based on different formatting needs. I'm working from the basic example shown in the Plotly documentation:…
thearn
  • 323
  • 3
  • 6
0
votes
0 answers

Generate subplots of plotly.express.timeline with the same bar height

I'm trying to make a Gantt chart for certain tasks we have to do for every customer. The idea is generating a plotly.express.timeline for every customer and plotting them in a shared timeline. When I print the chart, it generates a plot with varying…
0
votes
1 answer

Plotly express shows Invalid property for latitude for choropleth map plot for python

I am using these dataset " dataset tempat perlancongan Malaysia.csv" . In that I'm Passing the latitude and longitude for plotting the plot plot for spatial coordinate vs numerical feature . error I got = Value Error: Invalid property specified for…
0
votes
1 answer

Plotly Subplots Value Error when Adding Trace

I am trying to add data to subplots with plotly and I keep running into a Value Error: ValueError: Invalid element(s) received for the 'data' property of Invalid elements include: [Figure({ 'data': [{'hovertemplate':…
dlnvss
  • 71
  • 1
  • 8
0
votes
2 answers

Python Plotly : Set individual fixed height and width for all subplots when using facet_col

When setting a fixed height, e.g. height=400, while using facet_col, the height and width of each individual subplot are distributed among the overall height and width of the plotly chart area. If the number of subplots is variable, then so is the…
quadratecode
  • 396
  • 1
  • 2
  • 12
0
votes
1 answer

Plotly Express: Prevent bars from stacking when Y-axis catgories have the same name

I'm new to plotly. Working with: Ubuntu 20.04 Python 3.8.10 plotly==5.10.0 I'm doing a comparative graph using a horizontal bar chart. Different instruments measuring the same chemical compounds. I want to be able to do an at-a-glance,…
RightmireM
  • 2,381
  • 2
  • 24
  • 42
0
votes
1 answer

Plotly, mixed px.timeline chart with go.Figure to generate one visual and html file

I hope to create a visual (subplots) with a px.timeline chart and go.Table, basically put the two figures on the same page and generate a html file. Here is the sample data & unfinished code: from plotly.subplots import make_subplots import pandas…
XaviorL
  • 373
  • 1
  • 13