Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Placing images in the coordinate system?
Replies: 1   Last Post: Oct 5, 2009 7:38 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
King, Peter R

Posts: 32
Registered: 11/15/05
Re: Placing images in the coordinate system?
Posted: Oct 5, 2009 7:38 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I had a similar questin for v 6 where I want to be able to rescale the image & graphic interactively.

I have a bitmap image (.bmp file) - call it pict - that I wish to use as the background for some graphics. I do this with

Graphics[Table[Point[{x, 50 Sin[2 \[Pi] x/100]}], {x, 0, 100}], Prolog -> Inset[pict]]

(the actual graphics is more complicated than a sine curve but never mind).

Now if I just display the graphics by typing pict I can rescale this by clicking on the image and dragging the corners of the orange box. However when I overlay the graphics onto the image (as above) and try to drag the box it rescales the plot but not the background image. Is there any way I can link the two together so I can rescale by dragging the cursor? I tried GraphcsGrouping but that didn't get me anywhere.

> -----Original Message-----
> From: mathgroup-adm@smc.vnet.net
> [mailto:mathgroup-adm@smc.vnet.net] On Behalf Of Dave
> Sent: 03 October 2009 14:03
> To: mathgroup@smc.vnet.net
> Subject: Placing images in the coordinate system?
> Hello,
> Using Mathematica 7.0, how can I take an image and give it a position
> and scale, so that it can be combined with other graphics?
> Here's what I am trying to do: I would like to have an image map of
> the moon as the background for my plot or contour plot. I want to be
> able to plot points by their lat,lon positions and have them appear at
> the correct points on the map.
> I came up with a hack to do this by rasterizing the plot using Image[]
> so that it is the same resolution as the moon image, and then
> combining the two images.
> (I found a similar technique here:
> http://mathgis.blogspot.com/2007/12/fun-with-image-overlay.html)
> The problem is this does not work if the plot has Axes->True, because
> some space is used for the axes, so the coordinate systems don't match
> exactly anymore.
> I really would like to have both Axes and the image together. Is there
> a good way to do this?
> Thanks,
> Dave

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.