Re: [Matplotlib-users] Placing images on figures

2010-06-16 Thread Malte Dik
Hi, Eamon Caddigan eamon.caddi...@gmail.com The reason my initial attempts failed was because I (erroneously) assumed that the default axis spanned (0, 0), (1, 1). Now I that I know better, I can place an axis for each image in the right place and everything looks fine. However, I'm still

Re: [Matplotlib-users] Placing images on figures

2010-06-15 Thread Eamon Caddigan
Thanks for the suggestion! The reason my initial attempts failed was because I (erroneously) assumed that the default axis spanned (0, 0), (1, 1). Now I that I know better, I can place an axis for each image in the right place and everything looks fine. However, I'm still interested in knowing

Re: [Matplotlib-users] Placing images on figures

2010-06-10 Thread Scott Sinclair
On 10 June 2010 07:21, Eamon Caddigan eamon.caddi...@gmail.com wrote: I'd like to draw thumbnails of images on various plots, e.g., a bar chart with a picture placed at the base of the bar, or a scatter plot with photos next to select points. Reading and resizing the image aren't an issue.

Re: [Matplotlib-users] Placing images on figures

2010-06-10 Thread Eamon Caddigan
Thanks Scott. In order to precisely position an image using separate axes, I'd need to be able to query and set the margin between the bounding box and the actual axes. I can't seem to find any way to do that, either. On Thu, Jun 10, 2010 at 1:13 AM, Scott Sinclair scott.sinclair...@gmail.com

Re: [Matplotlib-users] Placing images on figures

2010-06-10 Thread Eamon Caddigan
Actually, since axes are created with normalized coordinates, what I really need is a way to query the size of the current figure, in pixels. On Thu, Jun 10, 2010 at 7:43 AM, Eamon Caddigan eamon.caddi...@gmail.com wrote: Thanks Scott. In order to precisely position an image using separate

Re: [Matplotlib-users] Placing images on figures

2010-06-10 Thread Benjamin Root
Actually, You might want to check out axes_grid module in the mpl_toolkits. After a quick perusal, I think InsetLocator might be what you are looking for in the axes_grid module. http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html I hope this helps, Ben Root On Thu, Jun

Re: [Matplotlib-users] Placing images on figures

2010-06-10 Thread Jae-Joon Lee
Can you describe why using the extent keyword does not serve your purpose? The svn version of matplotlib support BboxImage which might be better (depending on your use case). -JJ On Thu, Jun 10, 2010 at 1:21 AM, Eamon Caddigan eamon.caddi...@gmail.com wrote: Hi everybody, I'd like to draw

[Matplotlib-users] Placing images on figures

2010-06-09 Thread Eamon Caddigan
Hi everybody, I'd like to draw thumbnails of images on various plots, e.g., a bar chart with a picture placed at the base of the bar, or a scatter plot with photos next to select points. Reading and resizing the image aren't an issue. However, I've been searching all day, and I can't figure out