x_values = np.arange(1, 8, 1)
y_values = np.exp(x_values)
log_y_values = np.log(y_values)
fig = plt.figure()
ax = fig.add_subplot(111)
ax.bar(x_values, log_y_values)
Barplot with log y-axis program syntax with matplotlib pyplot