matplotlib: change the current axis instance (i.e., gca())
Use plt.sca(ax)
to set the current axes, where ax
is the Axes
object you'd like to become active.
Use plt.sca(ax)
to set the current axes, where ax
is the Axes
object you'd like to become active.