<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 395: Export mouse coordinates on mouse-move events</title><link>https://sourceforge.net/p/gnuplot/feature-requests/395/</link><description>Recent changes to 395: Export mouse coordinates on mouse-move events</description><atom:link href="https://sourceforge.net/p/gnuplot/feature-requests/395/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 02 Jul 2014 22:43:36 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gnuplot/feature-requests/395/feed.rss" rel="self" type="application/rss+xml"/><item><title>#395 Export mouse coordinates on mouse-move events</title><link>https://sourceforge.net/p/gnuplot/feature-requests/395/?limit=25#a795</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;OK, now that sounds a few steps ahead of what I had in mind. For what I am suggesting, I believe there is no need for a flag. I &lt;em&gt;want&lt;/em&gt; them to be momentary values. Nothing special about the coordinates, other than that they are received from the terminal. Once I decide where to put the objects after hovering the mouse with the arrow head tied to the arrow and click (second click), that's it. That's where I want my arrow 4 to be upon replot. I am not sure what you mean by "Then positions (label texts, ...) would automatically update upon replot."&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">shadowwalkersb</dc:creator><pubDate>Wed, 02 Jul 2014 22:43:36 -0000</pubDate><guid>https://sourceforge.net29bc9e229ca3df21978d0f493cf4b12494b1069e</guid></item><item><title>#395 Export mouse coordinates on mouse-move events</title><link>https://sourceforge.net/p/gnuplot/feature-requests/395/?limit=25#fd91</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;OK, the "set arrow mouse" idea sounds attractive.&lt;br /&gt;
It might even work:&lt;/p&gt;
&lt;p&gt;Upon "set arrow 4 mouse", the terminal returns two pairs of coordinates. Then "set arrow" stores them in variables named "MOUSEARROW_4_X1", _Y1, X2 etc. Arrow number four gets a flag "mouse", which make it read it´s position from those variables upon "reprint".&lt;/p&gt;
&lt;p&gt;But i have an idea for a more general approach: Any object (label, etc) could have such a flag, which makes it store the variable names used for the coordinates, instead of the momentary values. Then positions (label texts, ...) would automatically update upon replot.&lt;/p&gt;
&lt;p&gt;Then there could be a mousing command "mouse arrow variableprefix", which receives two point coordinates from the terminal and stores them in user variables, saving some typing in comparison to my above example.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Karl Ratzsch</dc:creator><pubDate>Wed, 02 Jul 2014 22:27:11 -0000</pubDate><guid>https://sourceforge.net7ef8c0e15a1c210320955d2a3a41bf07f22e1ed1</guid></item><item><title>#395 Export mouse coordinates on mouse-move events</title><link>https://sourceforge.net/p/gnuplot/feature-requests/395/?limit=25#5cb3</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Sorry, this turned out to be a long post, but I hope this will convey what I am trying to say. Very excited! So, here it goes.&lt;/p&gt;
&lt;p&gt;I completely agree with everything you said. I haven't done any complicated calculations which depend on mouse interaction. But, here is where I think mouse interaction is very helpful and intuitive and still does not interfere with the workflow you described, on the contrary it supports it. I would plot my data, then look at the plot, zoom in/out, use the mouse wheel to shift right/left and up/down, decide on ranges to actually plot, decide on the title of the plot, decide legend labels for the different traces, play with linetypes, linecolors, pointstyles, pointsizes, replot adding vectors (plot with vectors), replot adding text labels from a file and so on... All these steps and additions to the plot are done at least one step at a time. Beauty of scripting! Plot many different graphs into a gif or a many-page pdf to see the subtle differences of my data. Especially with the new loops! Boy, what a luxury, compared to old days when we had to use "reread". For quite some time now, I enjoy the bind command. Here is a portion of my .gnuplot file.&lt;/p&gt;
&lt;p&gt;k=1&lt;br /&gt;
bind "+" "k=k+1; rep"&lt;br /&gt;
bind "-" "k=k-1; rep"&lt;br /&gt;
bind "0" "k=1; rep"&lt;/p&gt;
&lt;p&gt;With the interactive ability of gnuplot and these commands I can look at my data in so many ways without having to type a single command. Saves so much time and energy which I can use to do my work better.&lt;/p&gt;
&lt;p&gt;With all this I am just trying to demonstrate that I am all for scripting, but how about adding some more ease, provide tools that make everyone's life easier when preparing and fine-tuning their scripts.&lt;/p&gt;
&lt;p&gt;Sometimes I want to add some arrows to point out particular regions on my plots or circles or rectangles. For now it is all manual, command is "set object at X,Y" or "set object from x1,y1 to x2,y2". And where do I get those Xs and Ys? How about I just say "set arrow mouse", then I click on the plot and an arrow appears with its tail fixed at the clicked position and head moving with cursor. When I am satisfied with it I click again and the arrow stays there. Internally, gnuplot still saves the objects the same way and when I am satisfied with my plot I do 'save filename' and the arrows are fixed in their positions next time I load my script with no further mouse interaction. But, we need to get those coordinates the first time. Let's get those from the mouse is what I am saying!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">shadowwalkersb</dc:creator><pubDate>Wed, 02 Jul 2014 21:46:27 -0000</pubDate><guid>https://sourceforge.net8ebf1328fb810436258308f633c7cb17bbeca1b4</guid></item><item><title>#395 Export mouse coordinates on mouse-move events</title><link>https://sourceforge.net/p/gnuplot/feature-requests/395/?limit=25#03f6</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The charm of gnuplot is (for me) to program the creation process of a graph, then execute the script, which perhaps asks for some specific interaction (as with the above examples), and then have my graph exactly as i wanted.&lt;/p&gt;
&lt;p&gt;If im not satisfied, i adapt the script, and run it again. I can save every variable for further use, so i won´t have to redo calculations (or mouse interactions) that are already OK (you just "print 'x = ',x to a file, and "load" that the next time).&lt;/p&gt;
&lt;p&gt;I have full control over everything in my graph, because i simply rebuild it from scratch every time.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Karl Ratzsch</dc:creator><pubDate>Wed, 02 Jul 2014 21:05:47 -0000</pubDate><guid>https://sourceforge.net769b779daf17ed24688ebadd305fe6679153702f</guid></item><item><title>#395 Export mouse coordinates on mouse-move events</title><link>https://sourceforge.net/p/gnuplot/feature-requests/395/?limit=25#4502</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Sure, if you call it a complete UI, I would definitely want that. I just thought it would be something too hard to implement at this point, so was just trying to offer an idea that I thought was a big step towards a UI. Because the mouse coordinates are already available internally. The status bar on the bottom displays them as the mouse moves. Plus, there is the zoom box. So, I thought, with a little more effort we can have a nice UI much better than the current state of "set object ..." commands. Entering coordinates by hand doesn't feel natural compared to clicking. I can't imagine any way "set object ..." commands can be used besides annotation purposes. So, the coordinates of labels, arrows, and such are not "data", they mean nothing in terms of data plotting. Having to enter them one by one, by typing is very cumbersome.&lt;/p&gt;
&lt;p&gt;I probably shouldn't have mentioned exporting at all for a feature request. Because, now I am not sure how that would work anyways. Especially, if having a UI is much easier to implement. So, please, feel free to reword this request as you feel proper. Long story short, my request is a UI as you put it nicely.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">shadowwalkersb</dc:creator><pubDate>Wed, 02 Jul 2014 18:50:33 -0000</pubDate><guid>https://sourceforge.net9af527c70e6a6c9cf6896d56d9c37c7b0ece5c5b</guid></item><item><title>#395 Export mouse coordinates on mouse-move events</title><link>https://sourceforge.net/p/gnuplot/feature-requests/395/?limit=25#c194</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, MOUSE_X and MOUSE_Y are only updated at a mouseclick, but you need to click anyway to mark the beginning or end of an arrow. &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;pause&lt;/span&gt; &lt;span class="n"&gt;mouse&lt;/span&gt; &lt;span class="n"&gt;button1&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;click at start of arrow&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;sx&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;MOUSE_X&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;sy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;MOUSE_Y&lt;/span&gt;
&lt;span class="n"&gt;pause&lt;/span&gt; &lt;span class="n"&gt;mouse&lt;/span&gt; &lt;span class="n"&gt;button1&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;click at end of arrow&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;set&lt;/span&gt; &lt;span class="n"&gt;arrow&lt;/span&gt; &lt;span class="n"&gt;from&lt;/span&gt; &lt;span class="n"&gt;sx&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;sy&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;MOUSE_X&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;MOUSE_Y&lt;/span&gt;
&lt;span class="n"&gt;replot&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;;-)&lt;/p&gt;
&lt;p&gt;If you want a user interface to draw on you plot, that would be something completely different. An UI could handle selection of items (Arrows, labels, etc. ...) and drawing, and then return the respective "set arrow ..." or similar command to gnuplot to put it on the plot.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Karl Ratzsch</dc:creator><pubDate>Wed, 02 Jul 2014 13:55:02 -0000</pubDate><guid>https://sourceforge.netcf75658eed3120690c5198b1e51ac553a14e35bd</guid></item><item><title>#395 Export mouse coordinates on mouse-move events</title><link>https://sourceforge.net/p/gnuplot/feature-requests/395/?limit=25#8f11</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When we right-click on the plot and move the mouse until a second right-click occurs, we see that zoom box that shows us a preview of what is going to be zoomed. And that happens when mouse is &lt;em&gt;moved&lt;/em&gt;. AFAIK, currently, MOUSE_X and MOUSE_Y are available to the user only after a mouse click as it is the case of your example code.  All I am saying is why not have zoom box type of functionalities for drawing arrows, circles and so on?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">shadowwalkersb</dc:creator><pubDate>Wed, 02 Jul 2014 10:59:44 -0000</pubDate><guid>https://sourceforge.net1396006c46f639c3e6bed6db3a31ad07b871c3e3</guid></item><item><title>#395 Export mouse coordinates on mouse-move events</title><link>https://sourceforge.net/p/gnuplot/feature-requests/395/?limit=25#a685</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hey, there was no offense intended, i was just in a hurry.&lt;/p&gt;
&lt;p&gt;And if this isn´t what you wanted, please do clarify.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Karl Ratzsch</dc:creator><pubDate>Wed, 02 Jul 2014 10:20:47 -0000</pubDate><guid>https://sourceforge.net06aebb4770666d7754ff078717158cfb8fbaf412</guid></item><item><title>#395 Export mouse coordinates on mouse-move events</title><link>https://sourceforge.net/p/gnuplot/feature-requests/395/?limit=25#27e0</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Seriously? That is the answer to all written above?&lt;/p&gt;
&lt;p&gt;I am in shock! Big disappointment! If the text is too cryptic you could have asked for clarification. This gives me so much motivation to get involved in this great project!&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">shadowwalkersb</dc:creator><pubDate>Wed, 02 Jul 2014 09:00:43 -0000</pubDate><guid>https://sourceforge.net015d2c286ba6d3fbf2b4c55481babff78f8c85b7</guid></item><item><title>#395 Export mouse coordinates on mouse-move events</title><link>https://sourceforge.net/p/gnuplot/feature-requests/395/?limit=25#1434</link><description>&lt;div class="markdown_content"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;pause&lt;/span&gt; &lt;span class="n"&gt;mouse&lt;/span&gt; &lt;span class="n"&gt;button1&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;Right-click at desired label position&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;set&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt; &lt;span class="n"&gt;at&lt;/span&gt; &lt;span class="n"&gt;MOUSE_X&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;MOUSE_Y&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;this is a mouse-positioned label&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;replot&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Karl Ratzsch</dc:creator><pubDate>Wed, 02 Jul 2014 08:20:23 -0000</pubDate><guid>https://sourceforge.netcfbca3fd0b18180adfdb672b644a2999910abc7f</guid></item></channel></rss>