refactor sonic tutorial plot