Stupid Rotation

I have finally got automatic modal rotation WORKING! There is still a
small issue with the orientation of the graph being generated but this
can either be fixed with transformations or within the generation of
the graph itself.