Answer to Question #99266 in Python for Anuj Mourya

Question #99266
Write a program to plot a bar chart in python to display the result of a school for five consecutive years
1
Expert's answer
2019-11-24T15:42:38-0500
import matplotlib.pyplot as plt

years = range(2015, 2020)
results = [10,15,17,20,25]

plt.bar(years, results, align='center', alpha=0.5)
plt.ylabel('Results')
plt.title('Year')

plt.show()

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS