frame.getContentPane().add(c);
frame.getContentPane().setPreferredSize(new Dimension(640, 480));
frame.pack();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
TikzGraphics2D t = new TikzGraphics2D();
t.paintComponent(frame);
}