>> x = range(10)
>> y = [random.randint(-10, 10) for i in x]
>> bar(x, y)
>>
>> What I want is a line to be drawn at y=0. Any idea how to get it done?
>
> How about axhline:
>
>  axhline(color='k', lw=1)
>
> See the documentation of axhline (and hlines) for more.

Thanks Jouni! This is exactly what I was looking for.:)

Ram

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to