Example
import matplotlib.pyplot as pit
#Our data
labels= [“TAMIL” , “ENGLISH” , “MATHS” , “PHYSICS” , “CHEMISTRY” , “CS”]
usage= [79.8, 67.3, 77.8, 68.4, 70.2, 88.5]
# Generating they positions. Later, we’ll use them to replace them with labels
y_positions =range (len(labels))
#Creating our bar plot plt.bar (y_positions, usage)
plt.xticks (y_positions, labels)
plt.ylabel (“RANGE”)
pit.title (“MARKS”)