pyplot line update