>>>>> "Glen" == Glen W Mabey <[EMAIL PROTECTED]> writes:
Glen> Hello, I have been unable to discover in the docs a method Glen> for discovering the exact size in pixels of an axes. Glen> The only way I have thought of is to get the size of the Glen> canvas via FigureCanvas.get_width_height() and then multiply Glen> by the results of axes.get_position(), but really I want to Glen> have the exact size in pixels. In [1]: ax = subplot(111) In [2]: left, bottom, width, height = ax.bbox.get_bounds() In [3]: print left, bottom, width, height 80.0 48.0 496.0 384.0 However, this question looks like one that would be better answered by describing what you are trying to do. There may be a more elegant solution using some of matplotlib's built-in coordinate systems which would prevent you from having to do raw pixel calculations, which is not usually what you want. So you may want to describe your actual problem rather than your solution <wink> JDH ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users