Questions for seaborn.catplot
Questions tagged [catplot]
80 questions
0
votes
0 answers
How(what) to plot (for) results of negative binomial glmm with categorical variables against counts?
I have count data for an ungulate species from two sites (here made up for the question). I want to know how to showcase results of categorical variable in this analysis. I first thought the graph I am getting have incidence rate ratios, but then…

Zaara Kidwai
- 13
- 3
0
votes
1 answer
How to map stripplots onto boxplots in a FacetGrid
I just encountered a rather serious bug in seaborn 0.12.2 facet plotting, in which a graph is produced -- without any warning or error -- showing the data in the wrong category. Potentially leading the scientist to draw the wrong…

xApple
- 6,150
- 9
- 48
- 49
0
votes
0 answers
What plot type can I use for this stacked table?
Newbie here ...
I obtained this dataframe using the groupby function. My aim is to plot the table in a way that will show the nested plots with the ph index as the pivot. Any other wiser methods (especially using matplotlib or seaborn) are also…

jugunnu
- 1
- 1
0
votes
1 answer
I want to make vertical bars with values on top of each bar
the plot is horizontal without values I tried this code
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
g =…

tareq ali
- 1
- 1
0
votes
0 answers
How to draw a line joining mean values on seaborn catplot of box kind?
I've some datasetfor which I'm using seaborn catplot of kind=box.
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
vertdf_dir = pd.read_csv(folder + "/" + filename)
meandf_dir = pd.DataFrame(columns=["NumFlights", "fix",…

rrsaxena92
- 1
- 2
0
votes
0 answers
How to add lengend to Sea Born plot
I have some trouble to add lengend to my seaborn plot. In the example I trying to let 0 represent "Not First Time". Let 1 represent "First Time".
enter image description here

luqing qi
- 1
- 2
0
votes
2 answers
Problems with label names of a groupby.value_counts() object
first of all I apologize for my english and thanks for your time.
I´ve a problem with the labels from df or series to draw a catplot with seaborn.
I have a df like this (from a data that which was modified with pd.melt)
cardio variable …

Lucio Suppo
- 3
- 1
0
votes
0 answers
How to add size property to catplot kind point in seaborn?
I have generated a seaborn catplot with kind=point as follows:
ax = sns.catplot(
x = "bins",
y = "sigma",
hue = "conditions",
data = DB,
col_wrap = 2,
errorbar = "sd",
col_order = ["V1d", "V1v", "V2d",…

Marco
- 77
- 1
- 10
0
votes
0 answers
Plotting with sns.catplot gives bad graphs
I am trying to plot my data where it shows my predicted values superimposed with the actual data values. It does the job but the bar that represents the y value become ridiculously small and uninterpretable and the x-axis labels only show at the…

SadJoe
- 1
0
votes
2 answers
Make Left and Bottom FacetGrid Spines Visible
I try to come up with a helper function to plot figure with subplots in Seaborn.
The codes currently look like below:
def granular_barplot(data, col_name, separator):
'''
data = dataframe
col_name: the column to be analysed
…

1cjtc jj
- 77
- 4
0
votes
0 answers
Saving catplot subfigures into a single figure file
I need to combine catplot subfigures into a single figure and then save that figure to a file. I used plt.subplots to create independent axis for each subfigure and then assigned the catplots to the subfigures. The figure looks fine in a Jupyter…

Paul
- 165
- 1
- 1
- 13
0
votes
1 answer
Seaborn catplot sort by columns
I am trying to sort the columns in seaborn catplot and I am unable to perform this operation. I know I can sort the bars within the graph using order= but how to sort the columns?
So far, I have written this code for plotting:
top_codes =…

raziiq
- 115
- 3
0
votes
0 answers
How to set xticks for individual axes in seaborn catplot
I have below code with axes in rows but only the last axes shows the xticks while I want to show the xticks on on each Axes. Please someone help me with this and also guide me how to individually control all the elements of axes.
g =…

Atif
- 2,011
- 9
- 23
0
votes
1 answer
multi-bar plot of multiple categories
I have a data frame that basically is a list of Technicians and several categories that have been evaluated in their work (value 1 for passed evaluation, 0 for not passed). Each technician is repeated for every evaluation.
in a dictionary form…
user23415
0
votes
0 answers
How to fix legend overlap when combining Stata graphs?
I have the following graphs done using this code:
legend(rows(3) size(small) bmargin(zero) rowgap(0) colgap(0) label (2 "Charcoal") label(3 "Rudimentary wood planks") label(4 "Animal dung") label(1 "Others")) ///
blabel(bar, format(%9.0f)…

Marie
- 21
- 2
- 7