NEED HELP WITH THIS (PYTHON) Create two lists containing names and averages (float values) of five students and plot a pie chart and a bar chart. Pie chart example: import matplotlib.pyplot as plt...


NEED HELP WITH THIS (PYTHON)



Create two lists containing
names andaverages (float values) of five students and plot a pie chart and a bar chart.



Pie chart example:


import matplotlib.pyplot as plt
import numpy as np


y = np.array([35, 25, 25, 15])
mylabels = ["Apples", "Bananas", "Cherries", "Dates"]


plt.pie(y, labels = mylabels)
plt.show()



Bar Chart example:


import matplotlib.pyplot as plt
import numpy as np


x = np.array(["A", "B", "C", "D"])
y = np.array([3, 8, 1, 10])


plt.bar(x,y)
plt.show()




Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here