merge subplot matplotlib

Solutions on MaxInterview for merge subplot matplotlib by the best coders in the world

showing results for - "merge subplot matplotlib"
Isabella
01 Aug 2019
1import numpy as np
2import matplotlib.pyplot as plt
3
4x = np.arange(0, 7, 0.01)
5    
6plt.subplot(2, 1, 1)
7plt.plot(x, np.sin(x))
8    
9plt.subplot(2, 2, 3)
10plt.plot(x, np.cos(x))
11    
12plt.subplot(2, 2, 4)
13plt.plot(x, np.sin(x)*np.cos(x))
14