No products in the cart.

Write a Python program to plot …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Write a Python program to plot a bar chart, showing the No. of Books published in respective year using the following data. No. of Books = [160,170,185,150,200] Year = [2019,2020,2021,2022,2023] Colour of bar should be red and the No of books and year labels should be displayed in the desired location and also the title of plot should be “Books published Yearwise”.
  • 1 answers

Shreejit Dutta 1 year, 9 months ago

from matplotlib import pyplot as plt Books=[160,170,185,150,200] Year=[2019,2020,2021,2022,2023] plt.bar(Year,Books,color='red',width=.2) plt.xlabel('Year') plt.ylabel('Books') plt.title('Books Published Yearwise') plt.plot()
http://mycbseguide.com/examin8/

Related Questions

Founder of python
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App