>>>>> "Brent" == Brent Fillery <[EMAIL PROTECTED]> writes:
Brent> Hi All Brent> I am new to Matplotlib, and was wondering if anybody knew Brent> of an easy way to construct a dropline from a data point in Brent> a plot to the x axis, i.e. a vertical line from (x1,y1) to Brent> (x1,0)? ax.plot((x1, x1), (y1, 0), linestyle='-', color='black', linewidth=2) should do it... There are some helper functions vline and axvline you may want to look at http://matplotlib.sourceforge.net/matplotlib.pylab.html#-axvline http://matplotlib.sourceforge.net/matplotlib.pylab.html#-vline The first will draw a vertical line that spans the axes vertical extent regardless of zoom level, and the second simply draws a vertical line at a given x from y1 to y2. vline supports many vertical lines and for a single one as in your example, it's easy enough to just use plot. JDH ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users