Plot pitch, roll, and heading during the descent and ascent dive phases

    Args
    ----
    p: ndarray
        Derived pitch data
    r: ndarray
        Derived roll data
    h: ndarray
        Derived heading data
    des: ndarray
        boolean mask for slicing descent phases of dives from tag dta
    asc: ndarray
        boolean mask for slicing asccent phases of dives from tag dta

def plot_prh_des_asc(p, r, h, asc, des):
    '''Plot pitch, roll, and heading during the descent and ascent dive phases

    Args
    ----
    p: ndarray
        Derived pitch data
    r: ndarray
        Derived roll data
    h: ndarray
        Derived heading data
    des: ndarray
        boolean mask for slicing descent phases of dives from tag dta
    asc: ndarray
        boolean mask for slicing asccent phases of dives from tag dta
    '''
    import matplotlib.pyplot as plt
    import numpy

    from . import plotutils

    # Convert boolean mask to indices
    des_ind = numpy.where(des)[0]
    asc_ind = numpy.where(asc)[0]

    fig, (ax1, ax2, ax3) = plt.subplots(3, 1, sharex='col')

    ax1.title.set_text('Pitch')
    ax1 = plotutils.plot_noncontiguous(ax1, p, des_ind, _colors[0], 'descents')
    ax1 = plotutils.plot_noncontiguous(ax1, p, asc_ind, _colors[1], 'ascents')

    ax1.title.set_text('Roll')
    ax2 = plotutils.plot_noncontiguous(ax2, r, des_ind, _colors[0], 'descents')
    ax2 = plotutils.plot_noncontiguous(ax2, r, asc_ind, _colors[1], 'ascents')

    ax1.title.set_text('Heading')
    ax3 = plotutils.plot_noncontiguous(ax3, h, des_ind, _colors[0], 'descents')
    ax3 = plotutils.plot_noncontiguous(ax3, h, asc_ind, _colors[1], 'ascents')

    for ax in [ax1, ax2, ax3]:
        ax.legend(loc="upper right")

    plt.ylabel('Radians')
    plt.xlabel('Samples')

    plt.show()

    return None