Ejemplo n.º 1
0
def col_num(ax: mpl.axes.Axes) -> int:
    """Gets the column number of a subplot axis in a figure."""
    return ax.get_subplotspec().colspan.start
Ejemplo n.º 2
0
def row_num(ax: mpl.axes.Axes) -> int:
    """Gets the row number of a subplot axis in a figure."""
    return ax.get_subplotspec().rowspan.start