inverts signal graph amplitude in example code