added legend to HSW plot