Computer Science, asked by eternatus008, 1 month ago

Write a program for plotting Bar chart using the following figure​

Attachments:

Answers

Answered by ssanjaykumarsingh64
1

Answer:

Python3

import numpy as np

import matplotlib.pyplot as plt

# creating the dataset

data = {'75':1-10, '150':11-20, '200':21-30,

'250':31-40, '300':41-50}

courses = list(data.keys())

values = list(data.values())

fig = plt.figure(figsize = (10, 5))

# creating the bar plot

plt.bar(courses, values, color ='maroon',

width = 0.4)

plt.xlabel("overs")

plt.ylabel("runs")

plt.title("runs scored by India in 50 overs")

plt.show()

Similar questions