Learn practical skills, build real-world projects, and advance your career
import seaborn as sns
import matplotlib.pyplot as plt
data = sns.load_dataset("titanic")
sns.set()

# Set context to "talk"
sns.set_context("talk",font_scale=1)  # other predefined contexts are 'notebook','paper','poster'
data.head()
sns.swarmplot(x="class", y="fare", data=data)

# Show plot
plt.show()
Notebook Image
import matplotlib.pyplot as plt 
import seaborn as sns 
  
# x axis values 
x =['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul','Aug','Sep','Oct','Nov',"Dec"] 
  
# y axis values 
y =[10,14,8,26,9,35,69,36,45,50,41,62] 
  
# plotting strip plot
ax = sns.stripplot(x, y); 
  
# giving labels to x-axis and y-axis 
ax.set(xlabel ='------Months-----', ylabel ='-------Days------') 
  
# giving title to the plot 
plt.title('-------My first graph-------'); 
  
# function to show plot 
plt.show() 
Notebook Image