Spec-Zone.ru › Matplotlib

matplotlib.pyplot.twiny

matplotlib.pyplot.twiny(ax=None)[source]

Make and return a second Axes that shares the y-axis. The new Axes will overlay ax (or the current Axes if ax is None), and its ticks will be on the top.

Examples

Plots with different scales

Examples using matplotlib.pyplot.twiny

Plots with different scales

Plots with different scales

© 2012–2026 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.twiny.html

Spec-Zone.ru

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