Corrected matplotlib settings code