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 how to query the pixel size
of the figure, so I can translate normalized axis coordinates to pixel
On Thu, Jun 10, 2010 at 9:40 AM, Benjamin Root <ben.root@...1304...> wrote:
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.
I hope this helps,
On Thu, Jun 10, 2010 at 8:54 AM, Eamon Caddigan <eamon.caddigan@...287...> > wrote:
Actually, since axes are created with normalized coordinates, what I
really need is a way to query the size of the current figure, in
On Thu, Jun 10, 2010 at 7:43 AM, Eamon Caddigan >> <eamon.caddigan@...287...> wrote:
> 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.za@...287...> wrote:
>>>On 10 June 2010 07:21, Eamon Caddigan <eamon.caddigan@...287...> 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. However, I've been
>>> searching all day, and I can't figure out how to call imshow without
>>> it taking over the axis in which its drawn.
>> You could try using separate axes for your images, as in