Fixed behavior of the Projection Panel

Makes sure it is deleted when there is a new plot with different axis
dimensions