Thread Subject: Obtaine Mouse Position

Subject: Obtaine Mouse Position

From: Divakar

Date: 5 Nov, 2009 18:05:05

Message: 1 of 3

Hi

I wanted to know if its possible to implement something like this
http://www.google.com/finance?q=NASDAQ:GOOG

I create a figure (1) and plot the data a time series.
Will i be able to get the display the data of the graph as i move the mouse pointer over it?

I have learnt that i can use WindowButtonMotionFcn. But I am not aware how to implement it and also how to restrict the mouse movement similar the link above.

Kindly Help
Thanks

Subject: Obtaine Mouse Position

From: Matt Fig

Date: 5 Nov, 2009 18:35:18

Message: 2 of 3

It should be easy to modify GUI_24 to do this.

http://www.mathworks.com/matlabcentral/fileexchange/24861-35-complete-gui-examples

Subject: Obtaine Mouse Position

From: Divakar

Date: 7 Nov, 2009 20:44:02

Message: 3 of 3

"Matt Fig" <spamanon@yahoo.com> wrote in message <hcv5t5$d8o$1@fred.mathworks.com>...
> It should be easy to modify GUI_24 to do this.
>
> http://www.mathworks.com/matlabcentral/fileexchange/24861-35-complete-gui-examples

Hi Matt

Thanks for the reply.
I have already implemented something similar to GUI_24. However i was stuck in trying to implement something similar to the webpage i posted. As and when u move ur mouse pointer over the graph, the mouse movement should be restricted to follow the graph and give me the x and y values. I am using this for a financial application.

Thanks
Divakar

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
mouse movement Divakar 7 Nov, 2009 15:49:04
mouse position Divakar 7 Nov, 2009 15:49:04
figure Divakar 7 Nov, 2009 15:49:04
plot Divakar 7 Nov, 2009 15:49:04
mouse pointer Divakar 7 Nov, 2009 15:49:04
rssFeed for this Thread

Contact us at files@mathworks.com