plotting a line from an equation in Matplotlib | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

plotting a line from an equation in Matplotlib

Is there a way to plot a line directly from an equation in Matplotlib? Either from "0 = Ax + By + C" form or "y = Mx + C" form. For example, I have a line with the coefficients 0.016, -0.015, and intercept -0.510, which can be expressed as 0 = 0.016x - 0.015 - 0.510 How can I plot this without manually figuring out points that fall on the line first?

23rd Jul 2020, 8:51 AM
Alan G.
Alan G. - avatar
0 Answers