boxplot Questions

2

Solved

I currently have a seaborn box plot that looks like this: Each grouping ('hue') on the x axis are all touching each other. The code for this boxplot is this: bp_all = sns.boxplot(x='X_Values', ...
Syndic asked 1/7, 2019 at 15:16

3

Solved

I'm building a function to draw custom box plots. I'd like the face of the boxes to be plain with slight transparency and I'd like a thin solid (non-transparent) line around each box face. I've b...
Contemporize asked 22/8, 2015 at 23:59

2

Solved

In addition to the solution posted in this link I would also like if I can also add the Hue Parameter, and add the Median Values in each of the plots. The Current Code: testPlot = sns.boxplot(x='...
Lection asked 3/8, 2017 at 5:57

3

I have a pandas dataframe with multiple columns I am trying to plot the column "Score" (on x axis) with another column called "interest rate". I am using the following commands: box_plot=sns.boxpl...
Dashboard asked 9/5, 2016 at 6:25

2

Solved

It seems like plotting a line connecting the mean values of box plots would be a simple thing to do, but I couldn't figure out how to do this plot in pandas. I'm using this syntax to do the boxpl...
Sternmost asked 18/5, 2017 at 5:19

8

Solved

When drawing a pandas boxplot, grouped by another column, pandas automatically adds a title to the plot, saying 'Boxplot grouped by....'. Is there a way to remove that? I tried using suptitle('')...
Transgress asked 7/5, 2014 at 1:30

1

I made a simple box plot using the plotly library: library(plotly) library(ggplot2) var_1 <- rnorm(100, 10, 5) var_2 <- sample(LETTERS[1:4], 100, replace = TRUE, prob = c(0.1, 0.2, 0.65, 0.0...
Unspoiled asked 3/1, 2021 at 7:9

2

I have a pandas dataframe containing data on Facebook Posts broken down by "type of post." The dataframe is called "Posts_by_type" It contains the # of likes, # of shares, and the type of post. The...
Resent asked 26/11, 2016 at 0:28

2

Solved

I have created a nested boxplot with an overlayed stripplot using the Seaborn package. I have seen answers on stackoverflow regarding how to edit box properties both for individual boxes and for al...
Salyers asked 26/4, 2016 at 20:3

10

Solved

Is there a way to group boxplots in matplotlib? Assume we have three groups "A", "B", and "C" and for each we want to create a boxplot for both "apples" and "oranges". If a grouping is not possibl...
Developing asked 16/5, 2013 at 15:57

3

Solved

I need to change the colors of the boxplot drawn using pandas utility function. I can change most properties using the color argument but can't figure out how to change the facecolor of the box. So...
Tophole asked 2/9, 2016 at 16:32

1

I am trying to make a Seaborn box plot in VSCode. I am basing my code off this example here: here. I am specifically making something like the penultimate example, but without the annotation. Code:...
Rheumatism asked 13/3, 2022 at 18:52

3

I'm making a boxplot in which x and fill are mapped to different variables, a bit like this: ggplot(mpg, aes(x=as.factor(cyl), y=cty, fill=as.factor(drv))) + geom_boxplot() As in the example...
Naturopathy asked 23/5, 2013 at 3:22

4

Solved

Hi I wanted to draw a histogram with a boxplot appearing the top of the histogram showing the Q1,Q2 and Q3 as well as the outliers. Example phone is below. (I am using Python and Pandas) I have c...
Feodor asked 28/10, 2015 at 1:21

4

Solved

I have seen this wonderful boxplot in this article (Fig.2). As you can see, this is a boxplot on which are superimposed a scatter of black points: x indexes the black points (in a random order),...
Reenareenforce asked 21/4, 2015 at 17:22

2

I want to plot boxplot of multiple columns of a dataframe. With R, I'm able to play with the axis and set different ranges to show the plots the way I want. In python though, I can have only one ra...
Nibelungenlied asked 14/7, 2020 at 18:32

2

Solved

I was trying to make 2 separate plots which I want to present side by side in my poster (I need to make them separate and cannot make use of facet_wrap). One of the plots has several boxplots, whil...
Sherrard asked 24/10, 2017 at 15:1

5

Solved

I intend to plot multiple columns in a pandas dataframe, all grouped by another column using groupby inside seaborn.boxplot. There is a nice answer here, for a similar problem in matplotlib matplot...
Perrie asked 13/8, 2014 at 11:24

1

Solved

I want to plot data points alongside a boxplot in ggplot. However, I can only get the geom_boxplot object to sit on top of my data points. Is there a way I can move them over to get a figure that l...
Furthermost asked 25/8, 2021 at 20:12

4

Solved

I want to draw a boxplot of column Z in dataframe df by the categories X and Y. How can I sort the boxplot by the median, in descending order? import pandas as pd import random n = 100 # this is p...
Lascivious asked 20/2, 2014 at 15:43

2

Solved

I'm trying to replicate the following boxplot I made in matplotlib using plotly: My data is in a very simple dataframe imported from an Excel file and looks like follows: As you can see, I ...
Ermentrude asked 27/5, 2020 at 17:0

2

Solved

I'm trying to combine a normal matplotlib.pyplot plt.plot(x,y) with variable y as a function of variable x with a boxplot. However, I only want a boxplot on certain (variable) locations of x but th...
Popsicle asked 9/5, 2011 at 14:41

3

Solved

I have a rather simple strip plot with vertical data. planets = sns.load_dataset("planets") sns.stripplot(x="method", y="distance", data=planets, size=4, color="....
Toronto asked 11/5, 2021 at 6:57

2

Solved

More generally, how to change the color values for a subset of the boxes properties in a seaborn boxplot? Be that the median, the whiskers, or such. I'm particularly interested in how to change the...
Handlebar asked 12/5, 2020 at 14:48

3

Solved

I have a dataframe like this import seaborn as sns import pandas as pd %pylab inline df = pd.DataFrame({'a' :['one','one','two','two','one','two','one','one','one','two'], 'b': [1,2,1,2,1,2,1,2,...
Abdias asked 29/12, 2016 at 16:59

© 2022 - 2024 — McMap. All rights reserved.