How to change the current axis instance (i.e., gca()) in matplotlib July 12, 2023 by Tarik Use plt.sca(ax) to set the current axes, where ax is the Axes object you’d like to become active.