Hi. The docs for Annotation [1] say that negative coordinates given for [ figure | axes ] [ points | pixels ] xycoords are to be interpreted relative to the top-right corner, but I found that they act relative to the bottom-left corner as for positive coordinates. This can be seen in the attached script and in the annotation_demo.py example [2], where the string "bottom right (points)" bleeds off the left edge of the figure.
[1] http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.text.Annotati on [2] http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo.html
import matplotlib.pyplot as plt fig = plt.figure() axes = fig.add_subplot(1, 1, 1) for x in (12, -12): for y in (12, -12): axes.annotate('X', (x, y), xycoords='axes points', color='r', ha='center', va='center') plt.show()
<<attachment: corners.png>>
------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev
_______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel