Fixed an issue where xlimits weren't set correctly

- also fixed some bugs in new example5_mpl.py script