How do I convert a 3-axis quaternion to a 1-axis x-y axis plane?

You need to apply the transformation from the sensor frame of reference to the toy frame of reference.

https://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/transforms/index.htm