modifies plot to vary in size depending on gate amount