matplotlib.pyplot.yticks
-
matplotlib.pyplot.yticks(*args, **kwargs) -
Получение или установка пределов y-шкалы текущих меток и подписей.
# return locs, labels where locs is an array of tick locations and # labels is an array of tick labels. locs, labels = yticks() # set the locations of the yticks yticks( arange(6) ) # set the locations and labels of the yticks yticks( arange(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue') )Ключевые аргументы, если они есть, являются свойствами
Text. Например, для поворота длинных подписей:yticks( arange(12), calendar.month_name[1:13], rotation=45 )
Примеры использования matplotlib.pyplot.yticks
© 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.yticks.html