My code generates a figure, but since I will be using those figures in reports, I have created the figure with
fig = plt.figure(dpi=300)
I in