In this section, we will learn to create some graphical
charts based on our data. Below is a simple program to visualize a list of
numbers - [3, 2, 5, 0, 1, -1, -10, 5.6]
Here we are using matplotlib function to generate a bar
graph to display the vote counts from the radish variety program we just wrote.
Below is the screenshot for the same.
Clearly Champion is our Champion. But I don’t like blue.
Let’s make the graphs Yellow. Just need to add a simple
argument in the code below.
plt.bar(x, votes, color="Yellow")
Below is the screenshot for the same.



No comments:
Post a Comment