matplotlib.pyplot.twinx
-
matplotlib.pyplot.twinx(ax=None)[source] -
Создаёт второй набор осей, совмещающий ось x. Новый набор осей будет наложен поверх ax (или текущих осей, если ax равно None). Отметки для ax2 будут размещаться справа, а экземпляр ax2 будет возвращён.
См. также
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.0.0/api/_as_gen/matplotlib.pyplot.twinx.html