Questions tagged [stripplot]

stripplot is used to draw a categorical scatterplot using jitter to reduce overplotting. A strip plot can be drawn on its own, but it is also a good complement to a box or violin plot in cases where you want to show all observations along with some representation of the underlying distribution. This tag should be used in addition to the plot package tag (e.g. seaborn, plotly, plotly-python, bokeh, ggplot).

16 questions
46
votes
3 answers

How to remove the duplicate legend when overlaying boxplot and stripplot

One of the coolest things you can easily make in seaborn is boxplot + stripplot combination: import matplotlib.pyplot as plt import seaborn as sns import pandas as pd tips = sns.load_dataset("tips") sns.stripplot(x="day", y="total_bill",…
Sergey Antopolskiy
  • 3,970
  • 2
  • 24
  • 40
9
votes
1 answer

How to add errorbars to stripplot

I've run into some difficulty adding error bars to my plots I've created in Python using Seaborn. I currently have a data frame in a 'csv' format; TSMdatabase = 'TSMvsRunmaster.csv'; tsmdf = pd.read_csv(TSMdatabase, sep=','); The Dataframe has…
Toby Walsh
  • 91
  • 1
  • 1
  • 2
9
votes
3 answers

How do I add multiple markers to a stripplot?

I would like to know how I could get multiple markers in the same strip plot. tips =…
user2755526
  • 187
  • 1
  • 2
  • 11
4
votes
1 answer

Edgecolor not appearing on Seaborn stripplot

Following the example on the Seaborn API site and I can't seem to get the edgecolor to appear Here's what I'm using import seaborn as sns sns.set_style("whitegrid") tips = sns.load_dataset("tips") ax = sns.boxplot(x="day", y="total_bill",…
canyon289
  • 3,355
  • 4
  • 33
  • 41
3
votes
2 answers

How to overlay data points on a barplot with a categorical axis

Goal: I am trying to show individual data points in a figure with multiple grouped bar charts using Seaborn. Problem: I tried to do it with a catplot for the bar chart and another catplot for the individual data points. However, this generates 2…
Alex Schubert
  • 67
  • 2
  • 7
3
votes
1 answer

coloring data points using vector of RGB values for each data point

I have a pandas dataframe with some values. I wanted to use seaborn's stripplot to visualize the spread of my data, although this is the first time I'm using seaborn. I thought it would be interesting to color the datapoints that were outliers, so I…
fffrost
  • 1,659
  • 1
  • 21
  • 36
3
votes
1 answer

Annotate points in a stripplot

Is it possible to annotate each point in a seaborn.stipplot? My data is in pandas. I realize that annotate works for matplotlib, but I have not found it to work in this case.
amc
  • 813
  • 1
  • 15
  • 28
2
votes
1 answer

Plotting data points over a box plot with specific colors & jitter

I have a plotly.graph_objects.Box plot and I am showing all points in the box plot. I need to color the markers by an attribute of the data (shown below). I also want to jitter the points (not shown below). Using Box I can plot the points and jitter…
David Parks
  • 30,789
  • 47
  • 185
  • 328
2
votes
1 answer

Color markers in stripplot by a different variable than hue

I have made a Seaborn stripplot on top of barplot that has experience group on the axis, grouped by two different conditions (target present or target not present) from a dataframe using the following code: IZ_colors = ['#E1F3DC','#56B567'] ax1 =…
minerv
  • 23
  • 1
  • 4
1
vote
1 answer

How do I prevent a second plot on an axis from rescaling a seaborn FacetGrid?

I am trying to overlay a categorical strip plot on top of a categorical violin plot. I plot the violin plot, and then the strip plot, but the axes are rescaled to the strip plot. I would like to keep the original axes from the violin plots. Here is…
Icy Clench
  • 11
  • 2
1
vote
1 answer

How can I plot mean and standard deviation error bars stripplot or swarmplot?

I created the following plot with the code and data posted at the end of this question: The black dot represents the mean of the R2 Score over all retailers, and the black lines represent the corresponding standard deviation. I want to achieve to…
1
vote
1 answer

Highlight stripplot points based on a condition

I am trying to do something like this: import seaborn as sns import matplotlib.pyplot as plt # edit me fig, ax = plt.subplots(figsize=(9, 6)) tips = sns.load_dataset("tips") #sns.stripplot(data=tips, x = ['f1','f2'],…
A R
  • 13
  • 2
1
vote
1 answer

Highlight specific sample in stripplot from pandas

I have a pandas dataframe as the following (although with more rows and columns): Index LOC1 LOC2 LOC 3 A 0.054 1.2 0.00 B 0.38 3.89 0.027 C 3.07 2.67 1.635 D 7.36 6.2 0.23 I was wondering if it's possible to highlight stripplot…
PaulaO
  • 67
  • 3
1
vote
1 answer

How to color individual point in a stripplot based on value

I am trying to color specific points on the seaborn:stripplot based on a defined value. For example, value=(df['x']=0.0 I know you can do this with regplot, etc using: df['color']= np.where( value==True , "#9b59b6") and the…
Novice
  • 1,101
  • 4
  • 18
  • 30
0
votes
1 answer

ValueError when passing array of colors to a stripplot

I have a data frame I'm trying to plot as a stripplot using Seaborn. The data structure is: Group Value "1" 3.1 "2" 1.2 ... ... Where 'Group' are strings and 'Value' are floats. I want to assign a color to any value less than a…
1
2