# Import plotting modules
import matplotlib.pyplot as plt
import seaborn as sns

# Make a strip plot of 'hp' grouped by 'cyl'
plt.subplot(2,1,1)
sns.stripplot(x='cyl', y='hp', data=auto)

# Make the strip plot again using jitter and a smaller point size
plt.subplot(2,1,2)
sns.stripplot(x='cyl', y='hp', data=auto, jitter=True, size=3)

# Display the plot
plt.show()

plt.clf()

# Generate a swarm plot of 'hp' grouped horizontally by 'cyl'  
plt.subplot(2,1,1)
sns.swarmplot(x='cyl',y='hp',data=auto)

# Generate a swarm plot of 'hp' grouped vertically by 'cyl' with a hue of 'origin'
plt.subplot(2,1,2)
sns.swarmplot(y='cyl',x='hp',data=auto,orient='h',hue='origin')

# Display the plot
plt.show()

plt.clf()

# Generate a violin plot of 'hp' grouped horizontally by 'cyl'
plt.subplot(2,1,1)
sns.violinplot(x='cyl', y='hp', data=auto)

# Generate the same violin plot again with a color of 'lightgray' and without inner annotations
plt.subplot(2,1,2)
sns.violinplot(x='cyl', y='hp', data=auto,inner=None,color='lightgray')

# Overlay a strip plot on the violin plot
sns.stripplot(x='cyl', y='hp', data=auto,jitter=True,size=1.5)

# Display the plot
plt.show()







d8906efdec5a3a98eee3cf3cb4700aaff2f2cf34
<mask token>

<mask token>
plt.subplot(2, 1, 1)
sns.stripplot(x='cyl', y='hp', data=auto)
plt.subplot(2, 1, 2)
sns.stripplot(x='cyl', y='hp', data=auto, jitter=True, size=3)
plt.show()
plt.clf()
plt.subplot(2, 1, 1)
sns.swarmplot(x='cyl', y='hp', data=auto)
plt.subplot(2, 1, 2)
sns.swarmplot(y='cyl', x='hp', data=auto, orient='h', hue='origin')
plt.show()
plt.clf()
plt.subplot(2, 1, 1)
sns.violinplot(x='cyl', y='hp', data=auto)
plt.subplot(2, 1, 2)
sns.violinplot(x='cyl', y='hp', data=auto, inner=None, color='lightgray')
sns.stripplot(x='cyl', y='hp', data=auto, jitter=True, size=1.5)
plt.show()

import matplotlib.pyplot as plt
import seaborn as sns
plt.subplot(2, 1, 1)
sns.stripplot(x='cyl', y='hp', data=auto)
plt.subplot(2, 1, 2)
sns.stripplot(x='cyl', y='hp', data=auto, jitter=True, size=3)
plt.show()
plt.clf()
plt.subplot(2, 1, 1)
sns.swarmplot(x='cyl', y='hp', data=auto)
plt.subplot(2, 1, 2)
sns.swarmplot(y='cyl', x='hp', data=auto, orient='h', hue='origin')
plt.show()
plt.clf()
plt.subplot(2, 1, 1)
sns.violinplot(x='cyl', y='hp', data=auto)
plt.subplot(2, 1, 2)
sns.violinplot(x='cyl', y='hp', data=auto, inner=None, color='lightgray')
sns.stripplot(x='cyl', y='hp', data=auto, jitter=True, size=1.5)
plt.show()

# Import plotting modules
import matplotlib.pyplot as plt
import seaborn as sns

# Make a strip plot of 'hp' grouped by 'cyl'
plt.subplot(2,1,1)
sns.stripplot(x='cyl', y='hp', data=auto)

# Make the strip plot again using jitter and a smaller point size
plt.subplot(2,1,2)
sns.stripplot(x='cyl', y='hp', data=auto, jitter=True, size=3)

# Display the plot
plt.show()

plt.clf()

# Generate a swarm plot of 'hp' grouped horizontally by 'cyl'  
plt.subplot(2,1,1)
sns.swarmplot(x='cyl',y='hp',data=auto)

# Generate a swarm plot of 'hp' grouped vertically by 'cyl' with a hue of 'origin'
plt.subplot(2,1,2)
sns.swarmplot(y='cyl',x='hp',data=auto,orient='h',hue='origin')

# Display the plot
plt.show()

plt.clf()

# Generate a violin plot of 'hp' grouped horizontally by 'cyl'
plt.subplot(2,1,1)
sns.violinplot(x='cyl', y='hp', data=auto)

# Generate the same violin plot again with a color of 'lightgray' and without inner annotations
plt.subplot(2,1,2)
sns.violinplot(x='cyl', y='hp', data=auto,inner=None,color='lightgray')

# Overlay a strip plot on the violin plot
sns.stripplot(x='cyl', y='hp', data=auto,jitter=True,size=1.5)

# Display the plot
plt.show()






