Fixed definition of __len__ in plots and updated IPython extension