Triaxial sensors and Processing 3D

Goodmorning to everyone.
I recently bought a triaxial magnetometer (HMC5883L) and I would like to see his readings on an x-y-z triaxial graph on Processing.
What should I do? How can I manage the camera to rotate the three axes?