Я построил гистограмму и хочу, чтобы на каждом столбце было имя студента.это мой код:
import matplotlib.pyplot
import numpy as np
names=["avi","jose","bob","nick","zelda","mark"]
pos=np.arange(6)+0.5
matplotlib.pyplot.bar(pos,(4,8,12,3,17,6),align="center",color="red")
matplotlib.pyplot.title("hight of students in unches",color="blue")
matplotlib.pyplot.xlabel("hight in inches",color="red")
matplotlib.pyplot.ylabel("students",color="red")
matplotlib.pyplot.tick_params(axis="x",color="white")
matplotlib.pyplot.tick_params(axis="y",color="white")
matplotlib.pyplot.yticks(pos,(names))
matplotlib.pyplot.show()
но я продолжаю получать имена на боковой стороне вместо бара 
спасибо за помощь:) |