Thread Subject: Getting the x-y coordinates when mouse over

Subject: Getting the x-y coordinates when mouse over

From: Nima Azar

Date: 29 May, 2008 18:19:02

Message: 1 of 3

Hi Guys,
I was wondering if someone can help me out here:
So I'm ouputting a graph and would like to be able to get
the x,y coordinates when I place the mouse pointer over the
graph. so basically by moving the mouse along the graph I
would like to display the coordinates right where the
pointer is or anywhere else in the figure.

thanks.

Subject: Getting the x-y coordinates when mouse over

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 29 May, 2008 18:29:53

Message: 2 of 3

In article <g1ms2l$il5$1@fred.mathworks.com>,
Nima Azar <nimakev@yahoo.com> wrote:
>I was wondering if someone can help me out here:
>So I'm ouputting a graph and would like to be able to get
>the x,y coordinates when I place the mouse pointer over the
>graph. so basically by moving the mouse along the graph I
>would like to display the coordinates right where the
>pointer is or anywhere else in the figure.

See the documentation on datacursormode()
--
  "He wove a great web of knowledge, linking everything together,
  and sat modestly at a switchboard at the center, eager to help."
                                              -- Walter Kerr

Subject: Getting the x-y coordinates when mouse over

From: Nima Azar

Date: 29 May, 2008 18:40:19

Message: 3 of 3

roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <g1msn1$rpv$1@canopus.cc.umanitoba.ca>...
> In article <g1ms2l$il5$1@fred.mathworks.com>,
> Nima Azar <nimakev@yahoo.com> wrote:
> >I was wondering if someone can help me out here:
> >So I'm ouputting a graph and would like to be able to
get
> >the x,y coordinates when I place the mouse pointer over
the
> >graph. so basically by moving the mouse along the graph
I
> >would like to display the coordinates right where the
> >pointer is or anywhere else in the figure.
>
> See the documentation on datacursormode()
> --
> "He wove a great web of knowledge, linking everything
together,
> and sat modestly at a switchboard at the center, eager
to help."
> -- Walter
Kerr

Thank you.
Just what I needed.

Tags for this Thread

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.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com