Plot dives with phase and associated pitch angle with HF signal

    Args
    ----
    depths: ndarray
        Depth values at each sensor sampling
    dive_mask: ndarray
        Boolean mask slicing dives from the tag 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
    pitch: ndarray
        Pitch angle derived from acceleromter data
    pitch_lf: ndarray
        Low-pass filtered derived pitch angle data

def plot_dives_pitch(depths, dive_mask, des, asc, pitch, pitch_lf):
    '''Plot dives with phase and associated pitch angle with HF signal

    Args
    ----
    depths: ndarray
        Depth values at each sensor sampling
    dive_mask: ndarray
        Boolean mask slicing dives from the tag 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
    pitch: ndarray
        Pitch angle derived from acceleromter data
    pitch_lf: ndarray
        Low-pass filtered derived pitch angle data
    '''
    import copy
    import numpy

    from . import plotutils

    fig, (ax1, ax2) = plt.subplots(2,1, sharex=True)

    des_ind = numpy.where(dive_mask & des)[0]
    asc_ind = numpy.where(dive_mask & asc)[0]

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

    ax1.legend(loc='upper right')
    ax1.invert_yaxis()
    ax1.yaxis.label.set_text('depth (m)')
    ax1.xaxis.label.set_text('samples')


    ax2.title.set_text('Pitch and Low-pass filtered pitch')
    ax2.plot(range(len(pitch)), pitch, color=_colors[2], linewidth=_linewidth,
            label='pitch')
    ax2.plot(range(len(pitch_lf)), pitch_lf, color=_colors[3],
            linewidth=_linewidth, label='pitch filtered')
    ax2.legend(loc='upper right')
    ax2.yaxis.label.set_text('Radians')
    ax2.yaxis.label.set_text('Samples')

    plt.show()

    return None