fix plotting that refer to up
Merge pull request #51 from piti118/rename_up_to_error_def

fix plotting that refer to up