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
0 votes
1 answer
27 views

I'm using seaborn's object interface and I would like to add a title to it. If I add it via label(title="Super awesome plot"), all facets have the title, but no title over all. Code: df = pd....
guerda's user avatar
  • 24.3k
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
131 views

I have survey data where I have an 'index' of the survey question, a 'variable' of the answer, and a 'value' of the fraction of respondents that gave the answer. The survey was repeated in two ...
Erin W's user avatar
  • 59
1 vote
1 answer
186 views

I am using seaborn.objects to create a faceted plot. I have read the documentation but setting font size argument does not do anything (Seaborn.objects Documentation) My Df: {'storage': {0: '4 °C', ...
mr.raccoon's user avatar
0 votes
0 answers
84 views

I would like to modify the theme of a seaborn objects graph displayed through streamlit. However, it seems that the graph only uses the standard theme, disregarding the .theme() part. The following ...
divingTobi's user avatar
  • 2,368
0 votes
1 answer
57 views

I am trying to have both stacked and dodge in same plot. In below example for each size I would like to have two set of stacked bar plot. import seaborn.objects as so tips= sns.load_dataset("...
itthrill's user avatar
  • 1,416
1 vote
0 answers
58 views

I have a pandas dataframe. My goal is to create a stacked bar plot chart that is facetted and annotated with the respective percentages. I am using Python 3.12.3, pandas version '2.2.2', seaborn ...
mr.raccoon's user avatar
0 votes
1 answer
400 views

I am trying to use seaborn's object-oriented interface to make a plot of paired data where each pair is connected by a line segment. I want a single subplot in the final plot to look like this: The ...
gbarl's user avatar
  • 1
2 votes
1 answer
867 views

I am currently using the seaborn library in Python to create a facetted stacked barplot from a pandas dataframe named averages with columns ['Name', 'Period', 'Value', 'Solver']. Here is the code I ...
Haeden's user avatar
  • 339
1 vote
1 answer
210 views

I tried to find a way to add a separate suptitle to a set of subplots created using the seaborn.objects API. However, I couldn't find any such examples in the the docs. Is there a way to do this? I ...
Axel Truedson's user avatar
0 votes
1 answer
148 views

when using seaborn functions I can get all handles and labels: p=( sns.scatterplot(data=peng, x='island', y='bill_length_mm', hue='species', style='sex') ) print(type(p)) h, l = p....
MK grafics's user avatar
-1 votes
1 answer
189 views

I am attempting to create a faceted plot of overlays of three groups within my dataset, however the groups are on different scales so when faceted two of the plots are squashed. Is there a way of ...
jstathakis's user avatar
2 votes
1 answer
1k views

How do I make it so that it shows all x ticks from 0 to 9? bin diff 1 4 -0.032748 3 9 0.106409 13 7 0.057214 17 3 0.157840 19 0 -0.086567 ... ... ... 1941 ...
guckmalmensch's user avatar
2 votes
1 answer
258 views

I am trying to order facets in a plot produced by the seaborn objects interface. import numpy as np import seaborn as sns import seaborn.objects as so import matplotlib.pyplot as plt df = sns....
Joshua Shew's user avatar
  • 1,061

15 30 50 per page