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