I have a function that generates a figure with 4 subplots:
def genFigures(self,savefile='out/histograms.png',show=0) :
fig, ((barsimpF, barsimpT),(barsworF, barsworT)) = plt.subplots(2, 2, sharey=True,figsize=(12,10))
but I would like to have the opportunity to reuse and recombine the subplot in different ways later on, with other subplots from other calls to the function. I have tried the function to return the subplots
return (barsimpF,barsimpT)
But how do I reuse them later on? Thanks.