get_twin

hhpy.plotting.get_twin(ax: matplotlib.axes._axes.Axes) → Optional[matplotlib.axes._axes.Axes][source]

get the twin axis from an Axes object

Parameters:ax – The matplotlib.pyplot.Axes object to plot on, defaults to current axis [optional]
Returns:the twin axis if it exists, else None