Added code to set x,y labels and title, and to set xlim, ylim in one line. Also moved some plotting code to the *internal.py files.