modified Pyplot interface