matplotlib.pyplot.xlim
-
matplotlib.pyplot.xlim(*args, **kwargs) -
Получение или установка пределов по оси x текущей области.
xmin, xmax = xlim() # return the current xlim xlim( (xmin, xmax) ) # set the xlim to xmin, xmax xlim( xmin, xmax ) # set the xlim to xmin, xmax
Если вы не указываете аргументы, вы можете передать xmin и xmax как kwargs, например:
xlim(xmax=3) # adjust the max leaving min unchanged xlim(xmin=1) # adjust the min leaving max unchanged
Установка пределов отключает автоматическое масштабирование по оси x.
Новые пределы оси возвращаются в виде кортежа длиной 2.
Примеры использования matplotlib.pyplot.xlim
© 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.xlim.html