def buildgraph_probs(array1, array2, axe_x_name, axe_y_name, name, num):
plt.figure(num)
plt.plot(array1, array2)
plt.xlabel('{0:s}'.format(axe_x_name))
plt.ylabel('{0:s}'.format(axe_y_name))
plt.title('Probability_{0:s}'.format(name))
plt.savefig('Probability_{0:s}.png'.format(name))