I launched the ipython notebook using:
$ ipython notebook --pylab=inline
in the command prompt.
when running this:
from matplotlib import pyplot as plt
fig = plt.figure()
ax1 = fig.add_subplot(111)
ax1.plot([1,2,3])
it automatically plots the graph without having to use the plt.show() function, however I find that the plt.show function doesn't work for me, or some other functions like plt.legend().
Does anybody know why this is happening, or how I can fix it?