Answers for "pandas creating multiple grid subplots"

0

pandas creating multiple grid subplots

plt.figure(figsize=(10, 12))

# The first subplot
plt.subplot(3, 2, 1)
plt.plot(by_hour_business['traffic_volume'])
plt.title('Business day traffic volume')
plt.xlim(6,20)#set limits of the current axes.
plt.ylim(1500,6500)


# The second subplot
plt.subplot(3, 2, 2)
plt.plot(by_hour_weekend['traffic_volume'])
plt.title('Weekend traffic volume')
plt.xlim(6,20)
plt.ylim(1500,6500)# set limits of the current axes.


# The third subplot
plt.subplot(3, 2, 3)
plt.title('Wednesday')

# The rest of the subplots
plt.subplot(3, 2, 4)
plt.subplot(3, 2, 5)
plt.subplot(3, 2, 6)

plt.show()
Posted by: Guest on August-12-2021

Code answers related to "pandas creating multiple grid subplots"

Python Answers by Framework

Browse Popular Code Answers by Language