As per hmc5883l datasheet 2nd and 3rd bytes are of z axis rather than y.
Attach a file by drag & drop or click to upload