def plot_and_save(plotting_func):
    plotting_func()
    plt.savefig((str(plotting_func.__name__).split(sep='.')[0] + '.pdf'), bbox_inches='tight', pad_inches=0)
    plt.close()
def plot_and_save(plotting_func):
    plotting_func()
    plt.savefig((str(plotting_func.__name__).split(sep='.')[0] + '.pdf'), bbox_inches='tight', pad_inches=0)
    plt.close()