def adjust_axes(axes, remove_spines=('top', 'right'), grid=True):
    'Adjust some properties of axes.\n\n    Parameters\n    ----------\n    axes : list\n        List of axes to process.\n    remove_spines : list of str\n        Which axis spines to remove.\n    grid : bool\n        Turn grid on (True) or off (False).\n    '
    axes = ([axes] if (not isinstance(axes, (list, tuple, np.ndarray))) else axes)
    for ax in axes:
        if grid:
            ax.grid(zorder=0)
        for key in remove_spines:
            ax.spines[key].set_visible(False)
Adjust some properties of axes.

Parameters
----------
axes : list
    List of axes to process.
remove_spines : list of str
    Which axis spines to remove.
grid : bool
    Turn grid on (True) or off (False).
def adjust_axes(axes, remove_spines=('top', 'right'), grid=True):
    'Adjust some properties of axes.\n\n    Parameters\n    ----------\n    axes : list\n        List of axes to process.\n    remove_spines : list of str\n        Which axis spines to remove.\n    grid : bool\n        Turn grid on (True) or off (False).\n    '
    axes = ([axes] if (not isinstance(axes, (list, tuple, np.ndarray))) else axes)
    for ax in axes:
        if grid:
            ax.grid(zorder=0)
        for key in remove_spines:
            ax.spines[key].set_visible(False)