Correct legends and lables are created