A Bar Chart is used when we want to show how some quantity varies among some discrete set of items. It also helps to explore how the values are distributed. For example, How many centuries were scored by a player in a cricket tournament.
player = ['Sachin', 'Sehwag' , 'Dhoni', 'Virat', 'Dravid']
num_of_century = [7, 2, 3, 4, 5]
Below is a demonstration in python to generate a Bar chart using matplotlib in python.
Some very nice examples of Bar charts are available here
player = ['Sachin', 'Sehwag' , 'Dhoni', 'Virat', 'Dravid']
num_of_century = [7, 2, 3, 4, 5]
Below is a demonstration in python to generate a Bar chart using matplotlib in python.
Some very nice examples of Bar charts are available here

No comments:
Post a Comment