There is a slight error in the module documentation if you extract all of the snippets. Change your
...you are calling the plot method on the graph object you have been creating.
Also, if you just grabbed the module note that you will have to use the .png or .gd2 file types...the gifs no longer are supported as far as I know.