Check the gallery where a few example shows you how to draw arrows. My recommendation is to use "annotate" with empty string.
e.g., annotate("", (1,2), xytext=(5,2), arrowprops=dict(fc="b")) http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=annotate#matplotlib.pyplot.annotate However, a line with an arrow in the middle is not supported. But something like below may be close enough? annotate("", (3,5), xytext=(5,5), arrowprops=dict(arrowstyle="->", fc="b", shrinkB=0)) annotate("", (1,5), xytext=(3,5), arrowprops=dict(arrowstyle="-", fc="b", shrinkA=0)) -JJ On Tue, Jul 14, 2009 at 2:13 PM, Afi Welbeck<welby...@yahoo.com> wrote: > Hi all, > > I'm a newbie, I'm trying to plot a line with an arrow > (arrow in theĀ middle and another with an arrow at > the end) with the following points: [1, 2] and [5, 2] > Could anyone please help me with the code? > Thanks. > Harriet A. Welbeck > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users