Revision: 4644
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4644&view=rev
Author: jrevans
Date: 2007-12-06 08:11:17 -0800 (Thu, 06 Dec 2007)
Log Message:
-----------
Updated to demonstrate 'offset points'
Modified Paths:
--------------
trunk/matplotlib/examples/annotation_demo.py
Modified: trunk/matplotlib/examples/annotation_demo.py
===================================================================
--- trunk/matplotlib/examples/annotation_demo.py 2007-12-06 15:10:15 UTC
(rev 4643)
+++ trunk/matplotlib/examples/annotation_demo.py 2007-12-06 16:11:17 UTC
(rev 4644)
@@ -55,6 +55,12 @@
ax.annotate('points', xy=(100, 300), xycoords='figure points')
+ ax.annotate('offset', xy=(1, 1), xycoords='data',
+ xytext=(-15, 10), textcoords='offset points',
+ arrowprops=dict(facecolor='black', shrink=0.05),
+ horizontalalignment='right', verticalalignment='bottom',
+ )
+
ax.annotate('local max', xy=(3, 1), xycoords='data',
xytext=(0.8, 0.95), textcoords='axes fraction',
arrowprops=dict(facecolor='black', shrink=0.05),
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins