Fix subplot creation on older matplotlibs