Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
get currentpoint in two axes

Subject: get currentpoint in two axes

From: Matthew

Date: 19 Apr, 2010 16:40:23

Message: 1 of 2

Hi all,

I have a GUI application where I have two axes overlaid in the same figure. I'd like for the user to be able to click on a point in the figure and retrieve the CurrentPoint coordinates in both axes coordinates. That is, I'd like the same location on the screen to map to 2 coordinate systems: the axes1 coordinate system and the axes2 coordinate system.

Does anyone have an idea of how to get this information? It appears that the CurrentPoint property for each axes is independent. Further, while I can use the figure's own CurrentPoint to get the pixel location on my screen, I'm not sure how to map this location to the axis coordinate system (one of the axes is 3D).

Any suggestions would be appreciated.

Thanks,
Matt

Subject: get currentpoint in two axes

From: Camille Couzi

Date: 18 Aug, 2010 20:15:20

Message: 2 of 2

"Matthew " <mwk5v@virginia.edu> wrote in message <hqi11n$36k$1@fred.mathworks.com>...
> Hi all,
>
> I have a GUI application where I have two axes overlaid in the same figure. I'd like for the user to be able to click on a point in the figure and retrieve the CurrentPoint coordinates in both axes coordinates. That is, I'd like the same location on the screen to map to 2 coordinate systems: the axes1 coordinate system and the axes2 coordinate system.
>
> Does anyone have an idea of how to get this information? It appears that the CurrentPoint property for each axes is independent. Further, while I can use the figure's own CurrentPoint to get the pixel location on my screen, I'm not sure how to map this location to the axis coordinate system (one of the axes is 3D).
>
> Any suggestions would be appreciated.
>
> Thanks,
> Matt

HI Matt,
Did you solved your problem? how did you do that?
I am having the same problem...
thanks for your answer.
Camille.

Tags for this Thread

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.

Contact us