plotly-express Questions
1
Solved
I'm looking for a way to set all markers in a Plotly Express scatter plot to the same size.
I want to specify that fixed size myself.
I know you can use a variable to set as size of the markers (w...
Stivers asked 13/1, 2021 at 20:22
2
Solved
During debugging or computationally heavy loops, i would like to see how my data processing evolves (for example in a line plot or an image).
In matplotlib the code can redraw / update the figure w...
Kermes asked 3/9, 2020 at 3:49
3
Solved
https://plotly.com/python/line-and-scatter/ has many scatter plot examples, but not a single one showing you how to set all the points' colours within px.scatter:
# x and y given as DataFrame colum...
Nonpartisan asked 14/8, 2020 at 13:41
1
Solved
I want to show in a treemap just the label and value of each item, not parent or ID. I have defined it with plotly express. No matter how much I have tinkered with it, I haven’t been able to restri...
Owsley asked 15/7, 2020 at 19:25
1
Solved
I'd like to change the order of the items in the legend of a plotly.express bar plot.
For example, I'd like to show Dinner before Lunch on this plot (the current behavior is especially awkward with...
Ferriage asked 27/6, 2020 at 14:31
2
Solved
The commented out line is my best guess.
def _make_json(self, given_panda: pd.DataFrame, sort_by: str) -> str:
figure = px.scatter_mapbox(given_panda,
hover_name='City',
hover_data=['State',...
Goldman asked 23/6, 2020 at 1:32
1
Solved
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 regre...
Lubra asked 14/4, 2020 at 22:46
1
Solved
When I use Plotly express to plot different parameters with different ranges - in the example below, BloodPressureHigh, Height(cm), Weight(kg), and BloodPressureLow - using the facet_col argument, ...
Angloirish asked 2/4, 2020 at 17:10
1
Solved
Currently, plotly express treemap shows only label inside treemap. How to include the value alongside the label?
Odeliaodelinda asked 7/3, 2020 at 8:16
2
Solved
I am using plotly express for a scatter plot. The color of the markers is defined by a variable of my dataframe, as in the example below.
import pandas as pd
import numpy as np
import plotly.expre...
Putdown asked 13/1, 2020 at 8:36
2
Solved
I want to create a scatter plot with only one trendline. Plotly express creates a different trendline for each color in the points list.
import plotly.express as px
value = [15, 20, 35, 40, 48]
y...
Virgy asked 24/10, 2019 at 16:11
1
Solved
I see that the hovermode attribute in layout has options for x or y, but is it possible to use an arbitrary dataframe column? instead?
For example, I'm plotting precision-recall curves. The x-axis...
Braunite asked 16/8, 2019 at 13:58
1
Solved
In plotly_express.line the only options I see to modify hover settings are hover_name and hover_data. A few issues I'm facing with modifying hover are:
It seems that even if I set hover_data=None...
Sackey asked 7/8, 2019 at 20:42
1
Solved
I have the following, using plotly express:
fig = px.line(series1, x='timestamp', y='data')
fig.show()
and it works properly.
I want to make multiple plots together, so I did:
fig = make_subpl...
Intercut asked 27/7, 2019 at 22:27
© 2022 - 2024 — McMap. All rights reserved.