02-12-2018 01:44 PM - edited 02-12-2018 01:46 PM
y=mx+b
Use the linear fit parameters that you get back to build a Y array for best fit line that exactly matches your X array or any other range you desire. If your x data doesn't have a x=0 then just make a new x-array of say 10pts which includes x=0 and x=max value for plotting.
02-12-2018 01:45 PM - edited 02-12-2018 01:46 PM
As I said, just use a ramp over the desired range (actually 2 edge points are sufficient to define the line), just just use linear evaluation using the fit result and an x array of the desired right and left limit and create another plot for the graph.
02-12-2018 02:17 PM
Thank you very much for the help. 😄