I have a very complex function that uses matplotlib to generate an axes, in which there are various content like scatter
, annotate
,quiver
, etc. For this reason, I do not want to touch the function, but I can use matplotlib.pyplot.gca()
to get that axes. Now I call the function multiple times and get a bunch of axes. Is there a way for me to simply combine them into one figure and save it, just like in Mathematica where one can use GraphicsRow
to put multiple figures together?
function()
ax1 = plt.gca()
function()
ax2 = plt.gca()
combining_them(ax1,ax2) ???
savefig() ???