My aim is to create a function that outputs a figure.
If I try to call my function multiple times in a script, it only shows the figure from the first call. Only once I close the first figure, that the program creates the second and so on and so forth.
my function roughly looks like this:
def graphs(...,fig):
...
ax = plt.figure(fig)
...
...
plt.show
For the moment the function doesn't return anything, is there a way I could output the graph or at least make it so that it doesn't stop creating figures after the first one?