Howdy PGM, Thanks for the reply. On 7/28/06, PGM <[EMAIL PROTECTED]> wrote: > Bill, > Could you post an example of the problem ? I must admit I'm slower than usual > to react today, and I'm not sure I understand what you mean. > I tried that: > > plot([3,],[3,],'o') > gca().text(3,3,'TEXT')
I'm plotting a mesh. A graph of vertexes and edges. I want to put labels on the vertexes, but I want them off to the side of the vertex a little bit so they don't overlap the vertex marker and all the incident edges so much. With the commands you have above, the lower left corner of the text and the marker overlap a little bit. plot([3,],[3,],'o') gca().text(3+little_offset,3+little_offset,'TEXT') is what I want, except the mesh has some dense parts that I need to zoom in to see clearly. But when I zoom in, that little_offset is magnified just like everything else and the text ends up being a huge distance from the vertex on the screen. > and couldn't repdouce what you were mentioning. By default, the text method of > an axes uses data coords, not graph coords. You want an offset to data > coords, right ? No, I want the offset to move things by a fixed distance in screen space. I.e. 5 pixels on the final plot no matter the zoom level. I did find one workaround just now. plot([3,],[3,],'o') gca().text(3,3,' TEXT\n') That's good enough for me for now, but it seems like it would be generally useful to be able to have a way to specify screen space offsets from graph coords when drawing. Is there not such a thing? --bb ------------------------------------------------------------------------- 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