Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

gnuplot and image maps

by j1n3l0 (Friar)
on Jul 09, 2007 at 13:59 UTC ( #625607=perlquestion: print w/replies, xml ) Need Help??
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 (Deacon) 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?


      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?

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


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://625607]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2018-04-26 08:03 GMT
Find Nodes?
    Voting Booth?