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()
Auf dieser Seite können Sie das Online-Video BAR PLOT PYTHON|GROUPED BAR| FOR BEGINNERS| mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer DESI ASTRO 10 Januar 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 44 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!