Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gnuplotting over an image

1,876 views
Skip to first unread message

Julio

unread,
Aug 23, 2009, 5:09:46 AM8/23/09
to
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

geep

unread,
Aug 23, 2009, 9:23:42 AM8/23/09
to

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

sfeam

unread,
Aug 24, 2009, 1:05:31 AM8/24/09
to
geep wrote:

> 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


0 new messages