[Tutor] Plotting a Linear Equation

Greg gregbair at gmail.com
Fri Sep 24 09:28:10 CEST 2010


On Thu, Sep 23, 2010 at 10:51 PM, Corey Richardson <kb1pkl at aim.com> wrote:

>  Hello tutors. Probably the wrong mailing list, but someone might know.
> I want to use matplotlib (or similar) to plot an equation in
> slope-intercept (y=mx+b) or standard form (Ax + By = C). As far as I've read
> and tested, you can only plot with a series of points. I could make two
> points out of those manually, but I was wondering if anyone knew of an
> easier way. Thanks.
>

You could just have your program compute the x- and y- intercepts, then plug
them into matplotlib.  Am I correct in that?


-- 
Greg Bair
gregbair at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100924/26087397/attachment.html>


More information about the Tutor mailing list