Fixed progressbar to show the proper number of iterations (n rather than n+1); silenced Matplotlib backend warnings on test_examples