1import matplotlib.pyplot as plt
2import numpy as np
3fig, axes = plt.subplots(1,3, figsize = (12,4))
4x = np.arange(1,11)
5axes[0].plot(x, x**3, 'g',lw=2)
6axes[0].grid(True)
7axes[0].set_title('default grid')
8axes[1].plot(x, np.exp(x), 'r')
9axes[1].grid(color='b', ls = '-.', lw = 0.25)
10axes[1].set_title('custom grid')
11axes[2].plot(x,x)
12axes[2].set_title('no grid')
13fig.tight_layout()
14plt.show()