2D-plotting in Matplotlib with x and y from a single variable. Click the Ipython notebook in the file list above to make Github render it, or view it through Nbviewer.