From: Petr M. <mi...@ph...> - 2004-05-02 15:10:52
|
When using "mouse pause" in Octave together with the "ginput.m" routine which waits for mouse clicks, I've noticed gnuplot redraws the plot after each click. I want to get rid of this -- mouse is not changing anything on the plot, thus redraw is not necessary. The reason is in mouse.c: /* Terminate via replot if we are in 'pause mouse' */ /* FIXME EAM: untested for mouse devices other than X11 */ if (paused_for_mouse) { paused_for_mouse = FALSE; do_string("replot"); fputc('\n', stderr); } It works fine with the "replot" being removed; however, under X11: - running gnuplot> pause mouse does not return to the prompt "gnuplot> " afterwards - In Octave, I have to write graw('pause mouse\n\n'); instead of graw('pause mouse\n'); otherwise first character from the next command is eaten. Maybe both have the same reason? The "replot" should go away, as it is an unexpected feature. --- PM |