Plotting graphs in python is quite straightforward. You need to make sure that scipy, numpy and matplotlib libraries are installed. Once installed we can then create a graph quite simply by using the following commands.

1 | import matplotlib.pyplot as plt |

Will produce the following plot:

You can do other things with the graph modules, below is a small python script I wrote to calculate the chances of rolling the numbers 2 thru 12 with two dice. We can add axis labels, titles, change the graph style and much more.

1 | import pylab |