Correcting orientation of axis in graphicalOptimization