|
From: Daniel J S. <dan...@ie...> - 2005-01-13 04:23:09
|
I just noticed that not all functions on the mouse work after doing a plot from inline data. Is this a pipe issue? Try plot '-' u 0:1 1 2 3 4 e After, zooming can't be done. Although, the center mouse button still works. Loading the data from a file rather than inline gives not problems. Dan |
|
From: Ethan M. <merritt@u.washington.edu> - 2005-01-13 05:56:23
|
On Wednesday 12 January 2005 08:24 pm, Daniel J Sebald wrote: > I just noticed that not all functions on the mouse work after doing a > plot from inline data. Is this a pipe issue? > After, zooming can't be done. It's intentional. In order to zoom, it needs to reread the input data. But if the data is in-line that is not possible. I suppose that in principle the input stream during a plot '-' command could be copied to a temp file so that it was available for re-reading. That might be a useful thing for more reasons than just mouse zooming. -- Ethan A Merritt Biomolecular Structure Center University of Washington 98195-7742 |
|
From: Daniel J S. <dan...@ie...> - 2005-01-13 06:54:33
|
Ethan Merritt wrote: >On Wednesday 12 January 2005 08:24 pm, Daniel J Sebald wrote: > > >>I just noticed that not all functions on the mouse work after doing a >>plot from inline data. Is this a pipe issue? >>After, zooming can't be done. >> >> > >It's intentional. >In order to zoom, it needs to reread the input data. >But if the data is in-line that is not possible. > > Oh yeah, the data needs to be re-entered. Guess I knew that and just forgot. Maybe we should add a comment to gnuplot.doc. >I suppose that in principle the input stream during a >plot '-' command could be copied to a temp file so that >it was available for re-reading. That might be a useful >thing for more reasons than just mouse zooming. > > For doing a replot without having to re-enter the data, perhaps? :-) Dan |
|
From: Petr M. <mi...@ph...> - 2005-01-13 15:42:32
|
> >I suppose that in principle the input stream during a > >plot '-' command could be copied to a temp file so that > >it was available for re-reading. That might be a useful > >thing for more reasons than just mouse zooming. > > For doing a replot without having to re-enter the data, perhaps? :-) It would be useful. With some associated 'set ...' to switch this caching on/off. --- PM |
|
From: Ethan M. <merritt@u.washington.edu> - 2005-01-13 17:31:49
|
On Thursday 13 January 2005 07:42 am, Petr Mikulik wrote: > > >I suppose that in principle the input stream during a > > >plot '-' command could be copied to a temp file so that > > >it was available for re-reading. That might be a useful > > >thing for more reasons than just mouse zooming. > > > > For doing a replot without having to re-enter the data, perhaps? :-) > > It would be useful. With some associated 'set ...' to switch this caching > on/off. Of course, the data is already present in gnuplot's internal arrays. In principle a "zoom" operation wouldn't need to reread the files. So it might be possible to implement zoom as a partial replot that skips the step of re-reading the data and maybe other steps in the full plot/replot pathway. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |
|
From: Petr M. <mi...@ph...> - 2005-01-14 08:13:44
|
> > > >I suppose that in principle the input stream during a > > > >plot '-' command could be copied to a temp file so that > > > >it was available for re-reading. That might be a useful > > > >thing for more reasons than just mouse zooming. > > > > > > For doing a replot without having to re-enter the data, perhaps? :-) > > > > It would be useful. With some associated 'set ...' to switch this caching > > on/off. > > Of course, the data is already present in gnuplot's internal > arrays. > > In principle a "zoom" operation wouldn't need to reread the files. > So it might be possible to implement zoom as a partial replot > that skips the step of re-reading the data and maybe other > steps in the full plot/replot pathway. It works this way with "splot" and rotations by mouse. For zoom to work the same way, it would need some loop over data to change validity of points for new ranges. --- PM |
|
From: Petr M. <mi...@ph...> - 2005-01-18 17:20:57
|
> I just noticed that not all functions on the mouse work after doing a > plot from inline data. Is this a pipe issue? Try > > plot '-' u 0:1 > 1 > 2 > 3 > 4 > e > > After, zooming can't be done. Although, the center mouse button still > works. All commands which require 'replot' are disabled for piped data. -- PM |