fix direction of scale in legend