added check for matplotlib version using the fontsize parameter for legends. This is only possible as of 1.2.1+. Fixes #128.