j1n3l0 has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

Has anyone done much work with gnuplot?

I am trying to generate image maps from png/gif images generated from gnuplot. As far as I can tell, what seems to be holding me up is finding out the values (in pixels) of lmargin, rmargin, tmargin and bmargin. If I knew these I could calculate the positions of the points on my graph.

I am currently awaiting answers from their mailing list but I thought I'd ask here as well. The interface I am using to gnuplot is Chart::Graph::Gnuplot.

Thanks in advance.

Replies are listed 'Best First'.
Re: gnuplot and image maps
by ForgotPasswordAgain (Vicar) on Jul 09, 2007 at 14:09 UTC

    Couldn't you set those margin values in your gnuplot script so that you know the values?

      Hi,

      I am not sure if the values there are in pixels or characters. For what I am trying to do I would prefer to work in pixels. If I run the gnuplot command "show margins" I just get a message stating that they are computed automatically.

      I would like to get these computed values in pixels ... or am I asking too much?
        Ok,

        I have found a solution to this problem and posted it here. I hope someone else finds it useful.

        Thanks.