|
From: Ben A. <bpa...@ma...> - 2009-03-29 18:23:31
|
nabed wrote: > > Thanks Ethan, > > The final part of the question is to provide the ability for the user to > graphically add new points onto a given graph by clicking on a location on > the graph. e.g say I have a smooth function and want to add a bump to it > in a region, I could replace three existing points by adding three new > points (via mouse interaction on the graph window) and then form a new > smooth interpolated graph containing the new points. I would then want to > get the new dataset back from gnuplot. > > Serle > As Petr mentioned Octave is able to communicate with gnuplot and obtain information with regards the mouse. You might find it useful to look over that solution. http://hg.savannah.gnu.org/hgweb/octave/file/8651fcc89556/scripts/plot/__gnuplot_ginput__.m The pipe/plot-stream is opened in the routine below http://hg.savannah.gnu.org/hgweb/octave/file/8651fcc89556/scripts/plot/gnuplot_drawnow.m Ben -- View this message in context: http://www.nabble.com/Enhancement-Request%3A-output-pipe-for-interogation-commands-tp22495484p22770790.html Sent from the Gnuplot - Dev mailing list archive at Nabble.com. |