modification to matplotlib backend