global error plot