Addresses the biggest blocks of memory not being freed up after command execution and plot figures lingering with additional blocks being allocated over time.
Replace pyplot.subplots interface with Figure instances
Replace plt.tight_layout with layout="constrained" parameter
Force clear any lingering plots with plt.close() when saving
Delete large intermediate dataframes where they are no longer needed
Force gc.collect() after command completion
Memory usage now only spikes during data processing but gets freed up after execution.
Addresses the biggest blocks of memory not being freed up after command execution and plot figures lingering with additional blocks being allocated over time.
pyplot.subplots
interface withFigure
instancesplt.tight_layout
withlayout="constrained"
parameterplt.close()
when savinggc.collect()
after command completionMemory usage now only spikes during data processing but gets freed up after execution.