I just noticed an issue when removing colormaps from my plot. It seems that when I remove a colormap from the plot, the memory usage of my application stays the same.
If my program is using mb of memory and I create a large colormap, the program then uses 296 mb of memory. If I remove the colormap using:
My memory usage either remains at 296 mb of memory, or it is reduced by a small amount like 20 mb. This becomes an issue as I am constantly deleting and creating colormaps, which leads to a lot of memory being used by the program. Does anyone know of a solution to this?