import numpy as np
x = np.arange(1, 8, 1)
y = np.exp(x)
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.bar(x, y, log=1)
plt.show()
Barplot with log y-axis program syntax with matplotlib pyplot