|
From: Ethan A M. <eam...@gm...> - 2017-07-21 15:14:37
|
On Friday, 21 July 2017 17:04:53 Patrick Dupre wrote: > > From: "Ethan Merritt" <eam...@gm...> > > On Friday, 21 July 2017 16:39:03 Patrick Dupre wrote: > > > Hello, > > > > > > In batch mode, I can make a pause and wait for a return > > > > > > I would like to pass a value to gnuplot at that point. > > > > Pass a value from where? > > > > If there is a plot window then this will wait for a key entered from > > the plot window and then pass it to some routine for interpretation. > > The routine could continue to accept new characters one by one > > to build up a longer string. > > > > pause mouse key > > call some_routine_name MOUSE_CHAR > > Following your idea, after a pause -1 (pause mouse key) > Clicking on the 2nd button of the mouse, I can display the values (x, y) > that I clicked. > How can I transfer these values to gnuplot when I make a return in the > terminal where gnuplot is waiting ? > Then I will affect the read value to the rest of my gnuplot script. The x and y coordinates from the most recent mouse click are in MOUSE_X and MOUSE_Y. Ethan |