Write a Python program to create a pie chart with the title of the player name and score of player. Make multiple wedges of the pie. Sample data: name: Sachin, Dhoni, Rohit, Yuvraj, Virat. Score: 85,69,47,63,48 . Exclude dhoni
Answers
Answer:
computer animation shows a cat movie in a straight line its height H metres above the ground is given by 8s - 3h = - 9 is the time in seconds after it starts moving in the same animation a mouse starts to move at same time as the cat and its movement is given by - 29s +10h = 16 find the height above the ground and the time when the cat meets the mouse (please answer this asap and no i wont mark you as brainliest for no reason) i need this answer in few time i need help in maths :(
Explanation:
brainlieas dena or thanks
Program is given below.
Explanation:
import matplotlib.pyplot as plt
# We are defining list of players here
players = 'Sachin', 'Dhoni', 'Rohit', 'Yuvraj', 'Virat'
# We are writing their scores here
score = [85,69,47,63,48]
colors = ["#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd"]
# explode 1st slice (This code is used to make a particular piece outside the pie chart)
explode = (0.1, 0, 0, 0, 0)
# Plot
plt.pie(score, explode=explode, labels=players, colors=colors,
autopct='%1.1d%%', shadow=True, startangle=140)
plt.title("Player name and score of player", bbox={'facecolor':'0.8', 'pad':5})
plt.show()
Refer the attached image for the output.