Menu

(Solved) : May Know Fix Code Make X Axis Month S Name Like Jan Feb Mar Apr Nov Dec Make Bar Correspo Q37257194 . . .

[2]: %matplotlib inline import matplotlib.pyplot as plt import random datal[] data2 -[] data3 [] count0 while count < 100: #

May I know how to fix this code and make x-axis to each month’sname

like Jan, Feb, Mar, Apr, … , Nov, Dec

and make each bar to correspond to eachmonth

Thank you !! in python please

[2]: %matplotlib inline import matplotlib.pyplot as plt import random datal[] data2 -[] data3 [] count0 while count < 100: # roll two six-sided dice data1.append (random.randint(1, 6) random.randint (1, 6)) data2.append (random.randint(1, 6) random.randint (1, 6)) data3.append (random.randint(1, 6) random.randint (1, 6)) count + 1 # for stacked histogram pass a list of lists # that is a list of the series you are graphing to your plotting function plt.hist([datal, data2, data3], bins-50, stacked True, label-[“blue”, “orange”) plt.ylabel( ‘frequency) plt.xlabel( sum of two dice’) plt.legend() plt.show) blue orange 50 30 20 10 8 10 12 sum of two dice Show transcribed image text [2]: %matplotlib inline import matplotlib.pyplot as plt import random datal[] data2 -[] data3 [] count0 while count

Expert Answer


Answer to May I know how to fix this code and make x-axis to each month’s name like Jan, Feb, Mar, Apr, … , Nov, Dec and make ea…

OR