I had found that we cannot use makehgtform in non-square matrices. So, you are not able to produce results.
HG.Matrix = makehgtform('xrotate', pi/2);
Whereas in that example he is using a square matrix to transform.
To produces results for xy, yz and zx plane. You may use contourf() function with different alignments of parameters, i.e.
Hope this helps!