Added remove methods for legends in figure and axes objects

This adds remove methods for legend objects. This address issue #2792