Delete a subplot
Use fig.delaxes
or plt.delaxes
to remove unwanted subplots
fig, axs = plt.subplots(1,3)
axs[0].plot([1,2],[3,4])
axs[2].plot([0,1],[2,3])
fig.delaxes(axs[1])
plt.draw()
plt.tight_layout()
ax.set_visible(False)
will suffice in most cases.
Remove the axis from the figure doc:
axs[1].remove()