This video tutorial teaches you the basics of GROUPED BAR PLOT in PYTHON. Python code is attached
Some Python books to buy
1. https://amzn.to/3W5fsvv
2. https://www.amazon.in/Programming-Beg...
3.https://www.amazon.in/Doing-Math-Pyth...
4. https://www.amazon.in/NumPy-Data-Anal...
5. https://www.amazon.in/Data-Analysis-P...
6. https://www.amazon.in/Scipy-Numpy-Dev...
---------------------------------------------------------PYTHON CODE IS HERE_____________________
#import libraries
toi get interactive control
%matplotlib widget
import numpy as np # array
import matplotlib.pyplot as plt # plotting
x= np.arange(5) # for five teams
y1= np.array([54.91,63.39,52.96,50.48,54.37]) # % win in one day match by each team
y2= np.array([30.08,47.58,36.57,31.92,32.37]) # % win in test match by each team
y3= np.array([66.49,54.41,55.48,43.67,63.09]) # % win in T20 match by each team
plot bar
plt.bar(x, y1,width=0.2,label='ODI Match') # for one day match % win
plt.bar(x+0.2, y2,width=0.2,label='TEST Match') # for test % win
plt.bar(x-0.2,y3,width=0.2, label='T20 Match' )
plt.xticks(x,['IND', 'AUS','ENG','WI','PAK'])
plt.legend(loc='best')
plt.title('Grouped bar plot: % win in Each Cricket Format', color='red', fontsize=15, fontweight='bold')
plt.ylabel(' % win', color='green', fontsize=40, fontweight='bold')
plt.xlabel('COUNTRY', color='green', fontsize=20, fontweight='bold')
plt.show()
On this page of the site you can watch the video online BAR PLOT PYTHON|GROUPED BAR| FOR BEGINNERS| with a duration of hours minute second in good quality, which was uploaded by the user DESI ASTRO 10 January 2023, share the link with friends and acquaintances, this video has already been watched 44 times on youtube and it was liked by 2 viewers. Enjoy your viewing!