From: Hagen W. <ha...@gn...> - 2010-10-14 11:32:43
|
On Thu, 14 Oct 2010 03:25:05 -0500, Jon <dev...@gm...> wrote: > > BTW, is it possible to modify the script to output the selected > points into an output file given a specific format? > Just add this two lines after the "label_number = label_number+1;\" line in the label_loop.gnu file: cmd = sprintf("echo \"set label '$0' at %.2f,%.2f textcolor 1\" >> outfile.txt",MOUSE_X,MOUSE_Y);\ system(cmd);\ Now your final chosen position is appended to the file "outfile.txt" with the whole line necessary to create this label. /Hagen > Jon > > On Wed, Oct 13, 2010 at 5:45 AM, Hagen Wierstorf wrote: > > On Sat, 2 Oct 2010 12:35:00 -0500, Jon wrote: > > It seems locating an accurate position on a graph to put some > label or arrow > > on needs try and wrong many times if using graph or screen > coordinate, which > > is time-consuming. > > To find the right label position can be indeed very time-consuming > if > you have a lot of labels to put in a graph. I have solved the > problem > for my purposes by using an interactive way to get the right > positions. > Have a look at http://www.gnuplotting.org/interactive-label-placing/ > [3] for > the basic functionality. > But I'm not sure if this is the right thing for you, because the > position is not given in screen coordinates. > > /Hagen > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating > great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb [4] > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... [5] > https://lists.sourceforge.net/lists/listinfo/gnuplot-info [6] > > > > Links: > ------ > [1] mailto:ha...@gn... > [2] mailto:dev...@gm... > [3] http://www.gnuplotting.org/interactive-label-placing/ > [4] http://p.sf.net/sfu/beautyoftheweb > [5] mailto:gnu...@li... > [6] https://lists.sourceforge.net/lists/listinfo/gnuplot-info |