MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Using a jpg picture for a 2D plot background

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99019] Re: Using a jpg picture for a 2D plot background
  • From: dh <dh at metrohm.com>
  • Date: Fri, 24 Apr 2009 03:46:36 -0400 (EDT)
  • References: <gspgk7$nro$1@smc.vnet.net>


Hi Bill,

you may e.g. use "Inset". But there is a slight problem consisting of 

sizing the picture.

An example where the sizing is done "by hand". :

=======================

bg = Import["ExampleData/coneflower.jpg"];

Plot[Sin[x], {x, 0, Pi}, PlotStyle -> {Thickness[0.05]},

  Prolog -> Inset[bg, Center, Center, 3]]

=======================

Daniel





Bill wrote:

> Hi:

> 

> I would like to use a jpg picture as a background for a 2D plot in Mathematica 6.0.1, on a PC using Win XP. 

> I'm not sure if this can be done. If this can be done, can someone please give me the code to do this?

> 

> Thanks,

> 

> WDW

> 




  • Prev by Date: Re: fitting surface with Mathematica 6.0.3 and range of fitted values
  • Next by Date: Re: Has Fourier been fixed in Mathematica 7
  • Previous by thread: Re: Using a jpg picture for a 2D plot background
  • Next by thread: Re: Using a jpg picture for a 2D plot background