matplotlib.pyplot.xticks
-
matplotlib.pyplot.xticks(*args, **kwargs) -
Получение или установка пределов текущих отметок и меток на оси x.
# return locs, labels where locs is an array of tick locations and # labels is an array of tick labels. locs, labels = xticks() # set the locations of the xticks xticks( arange(6) ) # set the locations and labels of the xticks xticks( arange(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue') )Ключевые аргументы, если таковые имеются, — это свойства
Text. Например, чтобы повернуть длинные метки:xticks( arange(12), calendar.month_name[1:13], rotation=17 )
Примеры использования matplotlib.pyplot.xticks
© 2012–2017 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
http://matplotlib.org/2.1.0/api/_as_gen/matplotlib.pyplot.xticks.html