ax1, ax2, ax3 = fig.subplots(3,
                             1,
                             sharex=True,
                             sharey=True,
                             gridspec_kw={
                                 'left': 0.35,
                                 'bottom': 0.3,
                                 'top': 0.9,
                                 'hspace': 0.05
                             })

lines = {}
lines['A'], = ax1.plot([], [], lw=2, color='blue')
lines['B'], = ax2.plot([], [], lw=2, color='red')
lines['somme'], = ax3.plot([], [], lw=2, color='black')

x = np.linspace(-1., 1., 1001) * 1E-6

ax1.set_ylim(-2.1, 2.1)
ax3.set_xlabel('Position (nm)')
ax3.set_xlim(x.min() * 1E9, x.max() * 1E9)

param_widgets = make_param_widgets(parameters,
                                   plot_data,
                                   slider_box=[0.35, 0.07, 0.4, 0.15])
reset_button = make_reset_button(param_widgets)

if __name__ == '__main__':
    plt.show()
fig = plt.figure()
fig.suptitle(titre)
fig.text(0.5, .93, "Fréquence du signal :{} Hz".format(frequence_signal), 
            multialignment='left', verticalalignment='top', horizontalalignment='center')

ax = fig.add_axes([0.15, 0.2, 0.7, 0.7])

lines = {}
lines['Analogique'], = ax.plot(table_vrai_signal_x, table_vrai_signal_y , color='blue', linewidth=1, label="Analogique")
lines['Numérique'],  = ax.plot([],[], color='red', marker='o', markersize=10, linewidth=2, label="Numérique")


ax.legend(loc="upper left", bbox_to_anchor=[0, 1], ncol=2, shadow=True, fancybox=True)

ax.set_ylim(-1.3, 1.4)
ax.set_ylabel(r'U.A')
ax.set_xlabel(r't(s)')


param_widgets = make_param_widgets(parameters, plot_data, slider_box=[0.4, 0.02, 0.3, 0.04])
choose_widget = make_choose_plot(lines, box=[0.005, 0.025, 0.2, 0.10], which=['Analogique'])
reset_button = make_reset_button(param_widgets, box=[0.8, 0.02, 0.1, 0.04])


if __name__=='__main__':
    plt.show()