Skip to main content
0 votes
1 answer
186 views

How can I make this plot using Seaborn or matplotlib? A key requirement is that the plot code be less than about 10 lines (this code is meant to go in a book and should not require a PhD in matplotlib)...
Ian Gow's user avatar
  • 3,577
3 votes
1 answer
108 views

I am in the process of migrating code and workflows from R-tidyverse/ggplot2 to Python and I'm trying to replicate something that worked for me in R. My challenge in this case is working with split ...
Bill Capehart's user avatar
4 votes
1 answer
117 views

I have a dataset for simulated and experimental values for different categories (temperatures, design). I want to create two figures to compare simulated and experimental values for 1.) temperature (...
Katharina's user avatar
2 votes
0 answers
53 views

I have script that loops over a set of json color themes, uses seaborn and matplotlib to generate a labeled swatch and then saves it to a buffer. I want to paste the buffer into a new PIL.Image but ...
zoof's user avatar
  • 181
0 votes
2 answers
158 views

I am making a histogram where all the bars are overlapped, but even with the transparency lowered for the bars, it still looks like a mess to me. I thought if I could make the bars themselves ...
katlynisgreatlyn's user avatar
3 votes
2 answers
98 views

I have the following plot made with Python seaborn: The plot I have: Obtained by this piece of code: plot = sns.scatterplot(data=by_sent_type, s=50) plot.set(xlabel="pair", ylabel="...
Ivy's user avatar
  • 33
4 votes
1 answer
134 views

I'm working on a scatterplot done with Seaborn; now, I'm pretty happy with the result achieved so far but there is one thing I wish to fix. In my legend I have two type of entries: sample and genome, ...
Matteo's user avatar
  • 693
Best practices
2 votes
4 replies
81 views

I am performing Exploratory Data Analysis (EDA) on a medical dataset (Primary Biliary Cirrhosis) to select features for a multiclass classification model. My target variable is Stage (1, 2, 3, 4). The ...
DJTrevor Philips's user avatar
Tooling
0 votes
3 replies
57 views

What I want to achieve is something as below: I have found the brokenaxes package here, and tried it: from brokenaxes import brokenaxes import numpy as np bax = brokenaxes(xlims=((0, 10), (195, 200))...
Explorer's user avatar
  • 117
Advice
0 votes
2 replies
60 views

Here is the plot I obtain with default settings of seaborn.displot sns.displot(df, x='duration', y='distance', kind='kde', fill=True) this lead to negative values for duration which as no meaning. ...
fenaux's user avatar
  • 47
1 vote
1 answer
140 views

I found a suggestion to use ticker.PercentFormatter. This changed the decimal numbers on the y-axis to percentages like I want, but the style formatting (grid, background, etc.) is lost, and the ...
timelessbeing's user avatar
1 vote
1 answer
77 views

I am trying to create a boxplot with different categories and overlay scatter points on top of it. The problem I am encountering is that when the results across categories are very similar, the ...
Lola Riesgo Torres's user avatar
0 votes
2 answers
157 views

say I create a dataclass for recording some data: @dataclass class HourlyReading: temperature: float pressure: int I create a list of my dataclass instances and regularly add data to ...
timelessbeing's user avatar
1 vote
1 answer
118 views

I use a swarmplot to display vertically multiple distributions in the same graphic: df = polars.read_csv("...") ax = seaborn.swarmplot(data=[df["ColA"], df["ColB"], df[&...
FiReTiTi's user avatar
  • 5,989
3 votes
2 answers
130 views

I have a dataframe with a mix of data types (object and numeric). I want to plot a scatter plot for all numeric columns in the dataset against specific columns: col_32, col_69,col_74 and col_80 ...
RayX500's user avatar
  • 319

15 30 50 per page
1
2 3 4 5
652