Issue
So I would like to plot that bar for the five different boroughs in New York using fig, ax = plt.subplots() in the same row with five different horizontal bar plot but I don't know how to do it.
Can someone help?
Thank you really much!!!
Solution
fig, (ax1, ax2, ax3, ax4, ax5) = plt.subplots(1, 5)
Now, you can use each axis object to plot 1 bar plot like:
ax1.plot(x, y)
ax2.plot(x, y**2, 'tab:orange')
ax3.plot(x, -y, 'tab:green')
ax4.plot(x, -y**2, 'tab:red')
ax5.plot(x, -y**3, 'tab:blue')
Answered By - Dhruv Darda
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.