def METHOD_NAME(self):
    """Test with user-defined GraphvizFormatting swapping x and y"""
    expected_result = """\
        graph {
          size="5,5";
          var0[label="0", pos="0,0!"];
          var1[label="1", pos="2,0!"];
          var2[label="2", pos="4,0!"];
          factor0[label="", shape=point];
          var0--factor0;
          var1--factor0;
          factor1[label="", shape=point];
          var1--factor1;
          var2--factor1;
        }
    """
    graphviz_formatting = gtsam.GraphvizFormatting()
    graphviz_formatting.paperHorizontalAxis = gtsam.GraphvizFormatting.Axis.X
    graphviz_formatting.paperVerticalAxis = gtsam.GraphvizFormatting.Axis.Y
    self.assertEqual(self.graph.dot(self.values,
                                    writer=graphviz_formatting),
                     textwrap.dedent(expected_result))