Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

gnuplot and image maps

by j1n3l0 (Pilgrim)
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.

Comment on gnuplot and image maps
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2015-10-06 20:20 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (160 votes), past polls