I would like to be able to draw rectangles, with text centered inside them, at key positions on a plot. The case in question is a bar plot, and the rectangles need to be drawn such that they are length of one or more of the each bar groupings, side-by-side in a line along the width of the X-axis. The line of rectangles should be located just below the X-axis tickmark labels. I see the fill() command allows plotting of a polygon and the figtext() command allows text to be plotted so, in theory, these should work. My problem is (a) what is the syntax for the fill() command - I have tried ax.fill(0.5,0.5,'b') and get an error: TypeError: zip argument #1 must support iteration (b) how to calculate the correct (x,y) values for locating the start/stop points of the rectangles? i.e. how do I find out where the start/end points are for the X values of each bar grouping? And at what vertical height should the line of rectangles be located? Any ideas or insights would be appreciated? Thanks Derek
-- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------------------------- 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