Script for adding custom curves

I would like to add a set of straight lines to a scatter plot. The lines would be defined by a set of intercepts calculated from the range of the current data and the slopes would all be 1. It is like adding "Curve Draw" curves in the Lines & Curves dialog. Can anyone show an example of how to do this with Python Script?

1 Comment

Just add on how do i change to

if fm.TypeId.DisplayName == "Horizontal Line":       
        if fm.Line.DisplayName == "Avg(Y)":

This is not working,


Thanks for help

mjhullum - May 24, 2017 - 1:39pm
+ Add a Comment

(3) Answers