Spec-Zone.ru › Matplotlib 2.1

matplotlib.pyplot.ylim

matplotlib.pyplot.ylim(*args, **kwargs)

Получение или установка пределов по оси y текущей области.

ymin, ymax = ylim()   # return the current ylim
ylim( (ymin, ymax) )  # set the ylim to ymin, ymax
ylim( ymin, ymax )    # set the ylim to ymin, ymax

Если вы не указываете аргументы, можно передать ymin и ymax в качестве аргументов kwargs, например:

ylim(ymax=3) # adjust the max leaving min unchanged
ylim(ymin=1) # adjust the min leaving max unchanged

Установка пределов отключает автоматическое масштабирование по оси y.

Новые пределы осей возвращаются в виде кортежа длиной 2.

Примеры использования matplotlib.pyplot.ylim

../../_images/sphx_glr_pyplot_annotate_thumb.png

Pyplot Annotate

../../_images/sphx_glr_step_demo_thumb.png

Step Demo

../../_images/sphx_glr_errorbar_limits_thumb.png

Errorbar Limits

../../_images/sphx_glr_griddata_demo_thumb.png

Griddata Demo

../../_images/sphx_glr_tricontour_vs_griddata_thumb.png

Tricontour Vs Griddata

../../_images/sphx_glr_ellipse_rotated_thumb.png

Ellipse Rotated

../../_images/sphx_glr_usetex_fonteffects_thumb.png

Usetex Fonteffects

../../_images/sphx_glr_arrow_demo_thumb.png

Arrow Demo

../../_images/sphx_glr_integral_thumb.png

Интеграл как площадь под кривой

../../_images/sphx_glr_moviewriter_sgskip_thumb.png

MovieWriter

../../_images/sphx_glr_basic_example_thumb.png

Простые примеры анимации

../../_images/sphx_glr_basic_example_writer_sgskip_thumb.png

Сохранение анимации

../../_images/sphx_glr_findobj_demo_thumb.png

Findobj Demo

../../_images/sphx_glr_pyplot_thumb.png

Учебник по pyplot

© 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.ylim.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API