ported matplotlib backend to Qt