Learn Before
Code
Seaborn Stripplot
A stripplot is a scatterplot of categorical data. Using seaborn's built in iris dataset, here is how to create a stripplot of sepal length by species.
# import needed modules import matplotlib.pyplot as plt import seaborn as sns # use to set style of background of plot sns.set(style="whitegrid") # loading data-set iris = sns.load_dataset('iris') # plotting strip plot with seaborn # set which variables on each axis ax = sns.stripplot(x='species', y='sepal_length', data=iris) # set the graph's title plt.title('Graph') # function to show plot plt.show()

0
1
Updated 2021-06-21
Tags
Python Programming Language
Data Science