http://www.mathworks.com/matlabcentral/newsreader/view_thread/324553
MATLAB Central Newsreader  is there any function to plot draggable points on plots?
Feed for thread: is there any function to plot draggable points on plots?
enus
©19942015 by MathWorks, Inc.
webmaster@mathworks.com
MATLAB Central Newsreader
http://blogs.law.harvard.edu/tech/rss
60
MathWorks
http://www.mathworks.com/images/membrane_icon.gif

Fri, 16 Nov 2012 19:12:18 +0000
is there any function to plot draggable points on plots?
http://www.mathworks.com/matlabcentral/newsreader/view_thread/324553#891843
Ha
<br>
ginput can plot points interactively but the points are not draggable.

Fri, 16 Nov 2012 20:21:11 +0000
Re: is there any function to plot draggable points on plots?
http://www.mathworks.com/matlabcentral/newsreader/view_thread/324553#891848
matt dash
"Ha" wrote in message <k8636h$8ph$1@newscl01ah.mathworks.com>...<br>
> <br>
> ginput can plot points interactively but the points are not draggable.<br>
<br>
No, you have to code that yourself using a series of functions. Here is a simple example:<br>
<br>
function dragtest<br>
figure<br>
axes('xlimmode','manual','ylimmode','manual') %< important<br>
line(0.5,0.5,'marker','s','markersize',10,'hittest','on','buttondownfcn',@clickmarker)<br>
<br>
function clickmarker(src,ev)<br>
set(ancestor(src,'figure'),'windowbuttonmotionfcn',{@dragmarker,src})<br>
set(ancestor(src,'figure'),'windowbuttonupfcn',@stopdragging)<br>
<br>
function dragmarker(fig,ev,src)<br>
coords=get(gca,'currentpoint');<br>
x=coords(1,1,1);<br>
y=coords(1,2,1);<br>
set(src,'xdata',x,'ydata',y);<br>
<br>
function stopdragging(fig,ev)<br>
set(fig,'windowbuttonmotionfcn','')<br>
set(fig,'windowbuttonupfcn','')

Fri, 16 Nov 2012 21:28:42 +0000
Re: is there any function to plot draggable points on plots?
http://www.mathworks.com/matlabcentral/newsreader/view_thread/324553#891851
Nasser M. Abbasi
On 11/16/2012 2:21 PM, matt dash wrote:<br>
> "Ha" wrote in message <k8636h$8ph$1@newscl01ah.mathworks.com>...<br>
>><br>
>> ginput can plot points interactively but the points are not draggable.<br>
><br>
> No, you have to code that yourself using a series of functions. Here is a simple example:<br>
><br>
> function dragtest<br>
> figure<br>
> axes('xlimmode','manual','ylimmode','manual') %< important<br>
> line(0.5,0.5,'marker','s','markersize',10,'hittest','on','buttondownfcn',@clickmarker)<br>
><br>
> function clickmarker(src,ev)<br>
> set(ancestor(src,'figure'),'windowbuttonmotionfcn',{@dragmarker,src})<br>
> set(ancestor(src,'figure'),'windowbuttonupfcn',@stopdragging)<br>
><br>
> function dragmarker(fig,ev,src)<br>
> coords=get(gca,'currentpoint');<br>
> x=coords(1,1,1);<br>
> y=coords(1,2,1);<br>
> set(src,'xdata',x,'ydata',y);<br>
><br>
> function stopdragging(fig,ev)<br>
> set(fig,'windowbuttonmotionfcn','')<br>
> set(fig,'windowbuttonupfcn','')<br>
><br>
<br>
nice !

Fri, 16 Nov 2012 22:17:30 +0000
Re: is there any function to plot draggable points on plots?
http://www.mathworks.com/matlabcentral/newsreader/view_thread/324553#891855
Matt J
"Ha" wrote in message <k8636h$8ph$1@newscl01ah.mathworks.com>...<br>
> <br>
> ginput can plot points interactively but the points are not draggable.<br>
<br>
<br>
If you have the Image Processing Toolbox, there is the IMPOINT command.

Fri, 16 Nov 2012 22:35:03 +0000
Re: is there any function to plot draggable points on plots?
http://www.mathworks.com/matlabcentral/newsreader/view_thread/324553#891857
Nasser M. Abbasi
On 11/16/2012 4:17 PM, Matt J wrote:<br>
> "Ha" wrote in message <k8636h$8ph$1@newscl01ah.mathworks.com>...<br>
>><br>
>> ginput can plot points interactively but the points are not draggable.<br>
><br>
><br>
> If you have the Image Processing Toolbox, there is the IMPOINT command.<br>
><br>
<br>
That is what is really so annoying with Matlab. Different functions that one<br>
needs exist in different toolboxes that one must buy, instead of having<br>
one fully integrated system which contains everything out of the box<br>
like with Mathematica.<br>
<br>
It is really annoying. Mathematica has everything in the kernel. No<br>
toolboxes to worry about. I wish Mathworks would fix this old<br>
broken policy. They can raise the price a little and sell one system and<br>
have everything in one box.<br>
<br>
Being too greedy is not a good thing. There are many other options<br>
now out there other than Matlab.<br>
<br>
Nasser

Sat, 17 Nov 2012 00:08:21 +0000
Re: is there any function to plot draggable points on plots?
http://www.mathworks.com/matlabcentral/newsreader/view_thread/324553#891860
Matt J
"Nasser M. Abbasi" <nma@12000.org> wrote in message <k86f2q$fkc$1@speranza.aioe.org>...<br>
><br>
> It is really annoying. Mathematica has everything in the kernel. No<br>
> toolboxes to worry about. I wish Mathworks would fix this old<br>
> broken policy. They can raise the price a little and sell one system and<br>
> have everything in one box.<br>
> <br>
> Being too greedy is not a good thing. There are many other options<br>
> now out there other than Matlab.<br>
================<br>
<br>
<br>
Dunno. I can believe that the development effort of all the toolboxes is many times that of core MATLAB, and some of those toolboxes I know I don't need and don't want to be forced to pay for. I do sometimes wonder, though, whether core MATLAB should cost ~$1000/license, but I don't have an educated way of appraising that.

Sat, 17 Nov 2012 14:26:13 +0000
Re: is there any function to plot draggable points on plots?
http://www.mathworks.com/matlabcentral/newsreader/view_thread/324553#891882
Ha
"Matt J" wrote in message <k86e1q$ks5$1@newscl01ah.mathworks.com>...<br>
> "Ha" wrote in message <k8636h$8ph$1@newscl01ah.mathworks.com>...<br>
> > <br>
> > ginput can plot points interactively but the points are not draggable.<br>
> <br>
> <br>
> If you have the Image Processing Toolbox, there is the IMPOINT command.<br>
<br>
Bingo. That's it. Thx.