How to create a Graph of xG of Premier League Teams ~ Python - Matplotlib - HLine

preview_player
Показать описание
How to create a hline graph using Python and Matplotlib.
------------------------------------------------------------------------------------------------------------------------------------------------------------------

xG = [3.4153279999999997,4.101629,5.154764,5.831171,6.052466,6.815812,7.490713000000001,7.852239999999999,8.231275,8.269352,8.605624,8.991765,9.131,10.029978999999999,10.496953,10.63712,10.810289999999998,10.968931,12.15906,13.62604]
team_names = ['Burnley','Sheffield United','Nottingham Forest','Luton','Fulham','Bournemouth','Wolves','Crystal Palace','Everton','West Ham','Newcastle United','Arsenal','Manchester United','Brentford','Aston Villa','Chelsea','Tottenham','Liverpool','Brighton','Manchester City']
club_colors_hex = [
'#6cafe0', '#005dac', '#d1202a', '#001559', '#000c8a',
'#fdba0b', '#e4010b', '#00009e', '#7d2838', '#000000',
'#7A263A', '#003399', '#0055a5', '#FDB913', '#d30e14',
'#ffffff', '#f47820', '#de0000', '#ed1c22', '#5f003f'
]
Рекомендации по теме
welcome to shbcf.ru