def plot_connectivity_matrix(connectivity_matrix, label_names):
    """ Plot the connectivity matrix. """
    import numpy as np
    from matplotlib import pyplot as plt
    plt.figure(figsize=(10, 10))
    np.fill_diagonal(connectivity_matrix, 0)
    fig = plt.imshow(connectivity_matrix, interpolation='nearest', cmap=
        'RdBu_r', vmax=0.8, vmin=-0.8)
    plt.colorbar()
    _ = plt.xticks(range(len(label_names)), label_names, rotation=90)
    _ = plt.yticks(range(len(label_names)), label_names)
    return fig
