Re: I can't bind hotkeys, why?



nitroamos wrote:

Hi -- I run a perl script on a server, which opens a gnuplot 4.3 pipe
for my graph, which tunnels through my ssh connection, and displays in
X11 on my OSX 10.5.5 laptop. This all works fine.

Your description is a little ambiguous. As I understand it, gnuplot itself
is running on a server. But is gnuplot_x11 (the x11 driver program)
running on the server, or on your laptop? Probably the former, but
the symptoms below make me not so sure.

However, I can't use the bind command in my gnuplot script. How do I
figure out what I might be doing wrong?

Some clues:
1) the 'q' hotkey works
2) the graph does register my mouse, because it displays the
coordinates of the cursor at the bottom of the plot
3) the 'm' hotkey works (toggles clue #2)

Those functions are all performed by gnuplot_x11 rather than by
gnuplot proper.

4) I can't zoom (I added the line: set mouse zoomjump). Although I'm
using a Mac, I'm using a multibutton mouse, but I can't get the graph
to respond in any way (except clue #2) to my mouse.
4) if I add a line like: bind a "set nokey"
I get nothing.

Whereas those functions are sent back over a pipe to the original
gnuplot main program for execution.

Now, I compiled this executable myself 1/2 yr ago, so maybe I didn't
compile it right? When I did, I used the configure line:
./configure --prefix=/ul/amosa/ --with-readline=gnu --with-pdf=/ul/
amosa --with-gd=/ul/amosa

Any recommendations on what to try to get this working?

There are two pipes involved. One takes the commands from gnuplot to
the separate program gnuplot_x11, which is the one controlling your x display.
The other pipe feeds back information from gnuplot_x11 to gnuplot.
It sounds like you are having problems with this reverse pipe.
Before speculating further, I need to know for certain which machine
gnuplot_x11 is running on.


.



Relevant Pages

  • Reading from stdin then launching a program that reads from stdin strange behaviour
    ... perl 5.8. ... gnuplot exits immediately from the interactive session. ... stdin like this: ... input to the pipe, then exits. ...
    (comp.lang.perl.misc)
  • Re: 3D graph plotting
    ... I'm wanting to plot a graph from a formula, as opposed to a set of data ... but from the above web page: "GnuPlot is a ... command-line driven interactive function, graph and data plotting program. ...
    (comp.sys.acorn.misc)
  • Re: How to scale a figure environment made in Gnuplot using pdflatex
    ... gnuplot so that all the fonts are in the correct size as they will ... When you resize the box in LaTeX, either the font ... the size of the font relative to the graph will change, ... set terminal postscript eps enhanced color size 5in,3.5in font "uhv, ...
    (comp.text.tex)
  • Re: Fixed graph box size
    ... Nix N. Nix wrote: ... > Is there a way to fix the graph box size in gnuplot and keep the overall ... But once you know how the layout is done, you can fix ... The basic idea is that a gnuplot script cannot generally have direct ...
    (comp.graphics.apps.gnuplot)
  • Re: Perl - Gnuplot Program Oct. 29, 2008
    ... Once this program has been circulated I expect that people who actually develop computer programs for a living will rewrite the code so that it is more conventional. ... I spent quite a bit of time trying to get Perl and Gnuplot to communicate with one another using files instead of a pipe. ... My best determination was that when Perl and Gnuplot were both trying to share some file, on occasion they would both try to access it at the exact same time. ...
    (comp.graphics.apps.gnuplot)