graphinglib.Figure.create_twin_axis#

Figure.create_twin_axis(is_y: bool = True, label: str = None, log_scale: bool = False, axis_lim: tuple[float, float] | None = None) TwinAxis[source]#

Creates a twin axis for the Figure object.

Parameters:
is_ybool

If True, the twin axis will be a y-axis, otherwise it will be an x-axis.

labelstr

The identification label for the twin axis.

log_scalebool

Whether or not to set the scale of the twin axis to logaritmic scale. Defaults to False.

axis_limtuple[float, float], optional

The limits for the axis.

Returns:
TwinAxis

The created twin axis.