c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
Python

How to create Bar chart in python?

| | python

In this tutorial you will learn how to install Matplotlib and create a basic bar chart for student mark list in python.

CODE:

import matplotlib.pyplot as plt

x = ['Tamil', 'English', 'Maths', 'Science', 'Social']
y = [80, 79, 95, 83, 75]

plt.bar(x, y, color="red")
plt.title('Student Marks')
plt.xlabel('Subjects')
plt.ylabel('Marks')
plt.show()
Video Guide installing and creating bar chart for student mark list in python: