plotly-express Questions
3
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 cha...
Acolyte asked 3/11, 2019 at 5:32
2
How can I remove the white margin/border around the figure?
import pandas as pd
import numpy as np
import plotly.express as px
df = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
colu...
Saccharine asked 18/8, 2021 at 3:2
6
I have a plotly express figure:
fig = px.line(data, x="DateTime", y="Gold", title="Gold Prices")
I want to change some details, like so
fig.update_layout(
line_color=...
Sublet asked 2/9, 2021 at 7:39
7
I am creating a bar graph with something like this:
px.bar(df, x=x, y=y, color=c,
title=params['title'],
hover_data=hover_data)
When c != None the graph produces either a legend or a colorbar...
Martlet asked 30/10, 2019 at 17:37
3
Solved
I am currently using plotly express to create a Sunburst Chart. However, i realized that children are ordered alphabetical for nominal values. Especially for plotting months that is pretty unlucky....
Ness asked 2/9, 2020 at 8:38
4
Solved
Plotly Express has an intuitive way to provide pre-formatted plotly plots with minimal lines of code; sort of how Seaborn does it for matplotlib.
It is possible to add traces of plots on Plotly to ...
Ned asked 3/12, 2020 at 11:9
1
Solved
Following my question here, I am now building nice treemaps.
I would like to show the aggregate value of the branch next to its label (Equities and ETFs). I have looked at px.treemap and fig.update...
Dannielledannon asked 15/8, 2022 at 15:27
2
How do I utilize plotly.express to plot multiple lines on two yaxis out of one Pandas dataframe?
I find this very useful to plot all columns containing a specific substring:
fig = px.line(df, y=df...
Larisalarissa asked 11/7, 2020 at 19:18
1
Solved
I'm visualizing a scatterplots with between 400K and 2.5M points. I expectected to need to downsample before visualizing but to see just how much I ran a pilot test with a 400k dataset in plotly ex...
Slovak asked 22/11, 2022 at 16:32
4
Solved
I have a Jupyter notebook (python) where I used plotly express to plot in the notebook for analysis purposes.
I want to share this notebook with non-coders, and have the interactive visuals be avai...
Betaine asked 26/8, 2019 at 13:31
2
Solved
If you’re like me, you love Plotly Express, but were frustrated when you ran into the issue that figures returned by Express can’t utilize ‘make_subplots()’ since make_subplots takes in trace...
Altarpiece asked 27/4, 2021 at 21:54
1
Solved
I'm making an interactive map, there is no problem with the map itself, there is a problem with the way the elements are located in the additional hover marks. Is there any way to change this order...
Fustic asked 31/8, 2022 at 13:49
2
In a scatter plot created using px.scatter, how do I mark one data point with a red star?
fig = px.scatter(df, x="sepal_width", y="sepal_length")
# Now set a single data point t...
Nutation asked 8/12, 2021 at 13:13
5
I'm using plotly express timeline to produce a Gantt chart following this example: https://medium.com/dev-genius/gantt-charts-in-python-with-plotly-e7213f932f1e
It automatically sets the x-axis to ...
Zendavesta asked 6/2, 2021 at 16:3
3
Solved
Is there a way how to display the counted value of the histogram aggregate in the Plotly.Express histogram?
px.histogram(pd.DataFrame({"A":[1,1,1,2,2,3,3,3,4,4,4,5]}),x="A")
If...
Mulholland asked 17/9, 2020 at 19:52
3
Solved
I'd like to overlay two histograms which I currently display only one next to the other using the following simplistic code. The two dataframes are not the same length, but it still makes sense to ...
Disfigure asked 18/9, 2019 at 8:44
5
Solved
The following code does not render in Jupyter lab:
%matplotlib widget
import plotly.express as px
import numpy as np
import pandas as pd
df = pd.DataFrame(np.random.randint(0,100,size=(5, 4)), ...
Lymphadenitis asked 11/8, 2019 at 14:36
1
Solved
so i am trying to do conditional coloring for my line plot so that data points are colored either blue or red. its about produced electrical power compared to consumption of power (in my dataframe ...
Armyn asked 18/12, 2021 at 22:52
3
Solved
I just installed plotly express. And I am trying to do something simple - plot each column of my data frame on the same y-axis with the index as x-axis. Here are questions/observations:
Is it nece...
Verbenia asked 27/9, 2019 at 22:57
3
Solved
I'm keen to know if there is an equivalent to:
import pandas as pd
import numpy as np
data = pd.DataFrame({'Day':range(10),
'Temperature': np.random.rand(10),
'Wind': np.random.rand(10),
'Humi...
Arrangement asked 13/1, 2021 at 5:23
3
Solved
I am learning to use pyplot.express and struggle with the following design problem: In faceted plots, the axis title is repeated for every subplot (in the example case 'petal width (cm)'). Is there...
Isochromatic asked 30/9, 2019 at 11:29
2
Solved
plotly.express is very convenient to produce nice interactive plots. The code below generates a line chart colored by country. Now what I need is to add points to the plot. Does anyone know how I c...
Velutinous asked 31/10, 2019 at 5:32
3
Solved
The following example produces an animated graph that can be displayed with jupyter notebook, but in jupyter-lab the graph does not show up.
%pylab inline
import plotly.express as px
gapminder = p...
Marcy asked 25/7, 2019 at 18:52
1
Solved
I am having issues with plotly express in Jupyter notebook. The colors in the plot are faded and do not match the colors in the legend, which they are supposed to look like. Does anyone have any su...
Moua asked 13/2, 2021 at 3:32
2
I have an example data set (pd.read_clipboard(sep='\s\s+') to read into pandas):
reference Latitude Longitude year subreg dot_size
date
1984-08-05 1985-12 24.033333 59.916667 1984 62 80
1984-08-0...
Easting asked 14/9, 2020 at 2:27
1 Next >
© 2022 - 2024 — McMap. All rights reserved.