fixed "Legend cut off in weights graph"