[Tutor] How do I plot a horizontal line and a vertical line in python

Wayne Werner waynejwerner at gmail.com
Mon Dec 7 00:40:52 CET 2009


On Fri, Dec 4, 2009 at 6:17 AM, Mkhanyisi Madlavana <mmadlavana at gmail.com>wrote:

> How can I do this using matplotlib? The snippet of my code looks like:
> <snip>
> Am I doing this all the wrong way?
>
>
This way is easier:

http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.axhline
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.axvline

HTH,
Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091206/ca9781bf/attachment.htm>


More information about the Tutor mailing list