Mar-14-2022, 06:47 PM
(This post was last modified: Mar-14-2022, 06:49 PM by deanhystad.)
I do not understand your response. "Well no"? Well no to what? You don't want to plot y= mx+c? This is how you plot y = mx+c
If you don't like how the plot is labeled, I intentionally left out labels and legend and the like to focus on the main problem. Now that you should know how to get y values to plot you can do any formatting that you want.
slope = 2 # m offset = 3 # c x = np.linspace(-5,5,100) # Range of x values for solving y y = x * slope + offset # y = mx + cAnd what do you mean by "accurate enough"? I think values will be calculated to 64 bit resolution. If you want higher resolution in the plot specify more values for the x axis. Can you please provide more information about what you mean by "accurate enough".
If you don't like how the plot is labeled, I intentionally left out labels and legend and the like to focus on the main problem. Now that you should know how to get y values to plot you can do any formatting that you want.