Creates a frame for displaying the graph