pandas creating multiple grid subplots

Solutions on MaxInterview for pandas creating multiple grid subplots by the best coders in the world

showing results for - "pandas creating multiple grid subplots"
Greta
31 Apr 2020
1plt.figure(figsize=(10, 12))
2
3# The first subplot
4plt.subplot(3, 2, 1)
5plt.plot(by_hour_business['traffic_volume'])
6plt.title('Business day traffic volume')
7plt.xlim(6,20)#set limits of the current axes.
8plt.ylim(1500,6500)
9
10
11# The second subplot
12plt.subplot(3, 2, 2)
13plt.plot(by_hour_weekend['traffic_volume'])
14plt.title('Weekend traffic volume')
15plt.xlim(6,20)
16plt.ylim(1500,6500)# set limits of the current axes.
17
18
19# The third subplot
20plt.subplot(3, 2, 3)
21plt.title('Wednesday')
22
23# The rest of the subplots
24plt.subplot(3, 2, 4)
25plt.subplot(3, 2, 5)
26plt.subplot(3, 2, 6)
27
28plt.show()