Python

How to create Bar chart in python?

How to create Bar chart in python?, someone asked me to explain?

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:

Post your comments / questions