
Now If I have a figure with a colorbar and set the visible attribute of the colorbar to False, the figure stretches to fill the space taken by the colorbar.
Is it possible to keep the figure dimensions fixed when the colorbar visible attribute changes?

