Shri Vaishnav Vidyapeeth Vishwavidyalaya, Indore (MP)
Matplotlib and Seaborn Assignment
Data Science-BTIBM505 , All Sections - M,D,E
Submission last Date – 3/Oct/2022
You can perform python Code on any IDE - Pycharm, Jupyter, Colab, Visual Studio Code
1. Import library - import matplotlib.pyplot as plt , import seaborn as sns
2. Create - (v is here variable) - plt.figure(figsize=(10,5), plt.title(‘ ‘ )plt.xlabel(‘ ‘), plt.ylabel(‘ ‘), plt.grid(),
plt.legend(loc=4), plt.xticks(rotation=180) , plt.show()
3. 1. Bar plot - plt.bar(x,y), sns.barplot(x,y)
4. 2. Line plot – plt.plot(x, y, color=‘red’) , sns.lineplot(x, y)
5. 3. Scatter Plot – plt.scatter(x, y ), sns.scatterplot(x, y, hue=‘categorical’)
6. 4. Pie Chart - plt.pie( v , label=v.index, autopct=“ % 0.2f%% ” or plt.pie(v, label=v.index , explode = [0,0,.2,0], shadow=True,
autopct = ‘% 0.1f%%’
7. 5. Histogram – plt.hist( v[c1], color = ‘red’) , sns.histplot(v[c1])
8. 6. Box Plot – plt.boxplot(v) , sns.boxplot(data=b)
9. 7. Subplot - plt.subplot(1,2,1), plt.subplot(1,2,2)
10. 8. Heatmap - sns.heatmap(corr, annot=True)
PERFORM THESE METHODS AND OPERATIONS THEN SUBMIT ASSIGNMENT
E - https://forms.gle/UYg5LqqtJxTj1jxu5
Om Kant Sharma