Issue
I would like to plot a DataFrame with say 29 columns, so I use the matplotlib's "subplots" command using 5x6 layout, (5x6 = 30 > 29)
fig, ax = plt.subplots(5,6)
However, when I plot all of the columns, the last subplot (i.e., row=5, col=6) is empty because there is no data to show there. Is there a way to remove that last subplot?
Solution
Try this
fig.delaxes(axs[5,6])
plt.show()
Answered By - A.Kot
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.