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:
Make the data tip ignore superimposed plot data

Subject: Make the data tip ignore superimposed plot data

From: Matt J

Date: 1 Feb, 2013 15:24:08

Message: 1 of 4

I have a code routine that displays an image in a figure window and also superimposes a scatter plot onto that image. When the data tip tool is clicked on a pixel too close to one of the plot points (even not directly on it) the data tip will try to process a nearby plot point instead of the image pixel directly under it. Zooming does not help.

Is there a way that I can make the data tip ignore the presence of the plot data?

Subject: Make the data tip ignore superimposed plot data

From: Steven_Lord

Date: 1 Feb, 2013 17:07:02

Message: 2 of 4



"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message
news:kegmmo$5so$1@newscl01ah.mathworks.com...
> I have a code routine that displays an image in a figure window and also
> superimposes a scatter plot onto that image. When the data tip tool is
> clicked on a pixel too close to one of the plot points (even not directly
> on it) the data tip will try to process a nearby plot point instead of the
> image pixel directly under it. Zooming does not help.
>
> Is there a way that I can make the data tip ignore the presence of the
> plot data?

Try setting the scatter plot's HitTest property to 'off'.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Make the data tip ignore superimposed plot data

From: Matt J

Date: 1 Feb, 2013 21:13:08

Message: 3 of 4

"Steven_Lord" <slord@mathworks.com> wrote in message <kegsnm$1hn$1@newscl01ah.mathworks.com>...
>>
> > Is there a way that I can make the data tip ignore the presence of the
> > plot data?
>
> Try setting the scatter plot's HitTest property to 'off'.
>


That's great. But for some reason it seems to work for scatter plot data but not for other kinds of superimposed objects like imellipses. Any idea why?

Subject: Make the data tip ignore superimposed plot data

From: Steven_Lord

Date: 4 Feb, 2013 04:20:11

Message: 4 of 4



"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message
news:kehb54$un$1@newscl01ah.mathworks.com...
> "Steven_Lord" <slord@mathworks.com> wrote in message
> <kegsnm$1hn$1@newscl01ah.mathworks.com>...
>>>
>> > Is there a way that I can make the data tip ignore the presence of the
>> > plot data?
>>
>> Try setting the scatter plot's HitTest property to 'off'.
>>
>
>
> That's great. But for some reason it seems to work for scatter plot data
> but not for other kinds of superimposed objects like imellipses. Any idea
> why?

I haven't worked with IMELLIPSE very much before, but from a quick scan of
the documentation it looks like it's not a Handle Graphics object (and so
doesn't have the standard Handle Graphics properties like HitTest) and
doesn't provide its own way to tell data tips to ignore it.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

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