Hello, I was wondering if it would be possible to draw a vertical line in a subplot, in such a way that the line exactly covers top to bottom of the subplot, say - if the subplot has a height of 80 points, the vertical line's length will be 80 points. Also, this vertical line may have an horizontal line that starts from it for a given length. like this |-------------; | being the vertical line and ------------ being the horizontal line.
Is there any way to implement this in Matplotlib. It'd also be nice to have a text annotating the horizontal and vertical line, something like this: ------------------------------------------------------- | | | |annotation1 |---------------------------- | subplot | | | | | | | | | ------------------------------------------------------- There likely will be 3-4 subplots like the above in a figure. The 3-4 subplots contain a plot of some data. In effect, it is like placing an annotation on the subplot data with a marker that illustrates the data position where the annotation is, and the length of the marker that specifies how long the portion of data on the plot the annotation runs. Here's a snippet I wrote, but it doesn't cover the height of the subplot fully, it takes xycoords as 'data'. self.axes.annotate("annotation1", xy=(locn,ytextlocn), xycoords='data', color='brown', markerprops=dict(marker='|', markerfacecolor='black', markersize=94, markeredgecolor='black', markeredgewidth = 2), ) self.axes.annotate("annotation1", xy=(locn, ytextlocn), xycoords='data', color='brown', markerprops=dict(marker=TICKRIGHT, markerfacecolor='black', markersize=(length_of_annotation1), markeredgecolor='black', markeredgewidth = 2), horizontalalignment='right', verticalalignment='top', ) What could be the best way to avoid annotations from overlapping in the plot? I guess this is kind of a complicated question. Please let me know if I wasn't sufficiently clear. I'm new to Mpl, and I may have overlooked something, or I may be doing something wrong. ____________________________________________________________________________________ Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users