fix matplotlib warning about update_from_data