updated matplotlib interface