Hmm I tried that. You mean the trace for setting the angle corresponding to the slope right? I should use max_x or am I mistaking?