Is there a method to use gnuplot to draw over an image, so that the
image appears as the background of the plot?
Thanks
Julio
Hi,
This might give some hints:
http://gnuplot.sourceforge.net/demo_4.2/image.html
I never tried it.
If I wanted to have a background image I would probably use imagemagick
to combine the two images. Or a graphics editor like gimp.
Make the background colour (usually white) of the gnuplot chart
to be transparent first, and then combine the two images.
Cheers,
Peter
> On Sun, 23 Aug 2009 02:09:46 -0700, Julio wrote:
>
>> Hi,
>>
>> Is there a method to use gnuplot to draw over an image, so that the
>> image appears as the background of the plot?
>>
>> Thanks
>>
>> Julio
> Hi,
> This might give some hints:
> http://gnuplot.sourceforge.net/demo_4.2/image.html
Or these, from the CVS version demo set:
http://gnuplot.sourceforge.net/demo_4.3/rgbalpha.html
http://gnuplot.sourceforge.net/demo_4.3/circles.html
> If I wanted to have a background image I would probably use
> imagemagick to combine the two images. Or a graphics editor like gimp.
> Make the background colour (usually white) of the gnuplot chart
> to be transparent first, and then combine the two images.
If you just want a pretty [a.k.a. distracting] picture in the
background, then yeah. But if the plot actually has something to
do with the image it is superimposed on, then you want to make sure
they are drawn at the same scale and origin. For that purpose you
would be better off doing the image drawing in gnuplot as well as
the plotting.
>
> Cheers,
> Peter