def plot_ppt(peeling_trajectory):
    'show the peeling and pasting trajectory in a figure'
    ax = host_subplot(111)
    ax.set_xlabel('peeling and pasting trajectory')
    par = ax.twinx()
    par.set_ylabel('nr. restricted dimensions')
    ax.plot(peeling_trajectory['mean'], label='mean')
    ax.plot(peeling_trajectory['mass'], label='mass')
    ax.plot(peeling_trajectory['coverage'], label='coverage')
    ax.plot(peeling_trajectory['density'], label='density')
    par.plot(peeling_trajectory['res_dim'], label='restricted dims')
    ax.grid(True, which='both')
    ax.set_ylim(bottom=0, top=1)
    fig = plt.gcf()
    make_legend(['mean', 'mass', 'coverage', 'density', 'restricted_dim'], ax, ncol=5, alpha=1)
    return fig
show the peeling and pasting trajectory in a figure
def plot_ppt(peeling_trajectory):
    
    ax = host_subplot(111)
    ax.set_xlabel('peeling and pasting trajectory')
    par = ax.twinx()
    par.set_ylabel('nr. restricted dimensions')
    ax.plot(peeling_trajectory['mean'], label='mean')
    ax.plot(peeling_trajectory['mass'], label='mass')
    ax.plot(peeling_trajectory['coverage'], label='coverage')
    ax.plot(peeling_trajectory['density'], label='density')
    par.plot(peeling_trajectory['res_dim'], label='restricted dims')
    ax.grid(True, which='both')
    ax.set_ylim(bottom=0, top=1)
    fig = plt.gcf()
    make_legend(['mean', 'mass', 'coverage', 'density', 'restricted_dim'], ax, ncol=5, alpha=1)
    return fig